Skip to content
Snippets Groups Projects
Commit c9565f01 authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Fix input prop handling

parent a5587a92
Branches
Tags 0.1.0-prerelease.20190424211632
No related merge requests found
......@@ -4,14 +4,17 @@ import classNames from 'classnames';
import styles from './input.css';
const Input = props => (
<input
{...props}
className={classNames(styles.inputForm, {
[styles.inputSmall]: props.small
})}
/>
);
const Input = props => {
const {small, ...componentProps} = props;
return (
<input
{...componentProps}
className={classNames(styles.inputForm, {
[styles.inputSmall]: small
})}
/>
);
};
Input.propTypes = {
small: PropTypes.bool
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment