input.tsx 341 B

12345678910111213
  1. import classNames from 'classnames';
  2. import omit from 'lodash/omit';
  3. interface Props extends React.InputHTMLAttributes<HTMLInputElement> {}
  4. export default function Input({className, ...otherProps}: Props) {
  5. return (
  6. <input
  7. className={classNames('form-control', className)}
  8. {...omit(otherProps, 'children')}
  9. />
  10. );
  11. }