soiz1's picture
Upload 2891 files
6bcb42f verified
raw
history blame contribute delete
638 Bytes
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;