checkbox.tsx 191 B

123456789
  1. const Checkbox = (props: React.InputHTMLAttributes<HTMLInputElement>) => (
  2. <input type="checkbox" {...props} />
  3. );
  4. Checkbox.defaultProps = {
  5. checked: false,
  6. };
  7. export default Checkbox;