Spaces:
Running
Running
File size: 638 Bytes
6bcb42f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';
import styles from './input.css';
const Input = props => {
const {small, ...componentProps} = props;
return (
<input
{...componentProps}
className={classNames(
styles.inputForm,
props.className,
{
[styles.inputSmall]: small
}
)}
/>
);
};
Input.propTypes = {
className: PropTypes.string,
small: PropTypes.bool
};
Input.defaultProps = {
small: false
};
export default Input;
|