input.tsx 378 B

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