input.tsx 373 B

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