blob: 9c175b7a81d96f9a2f06a58589159ec4ef73f5ca (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
 | import type { FC } from 'react';
import { BooleanField, type BooleanFieldProps } from '../boolean-field';
export type CheckboxProps = Omit<BooleanFieldProps, 'type'>;
/**
 * Checkbox component
 *
 * Render a checkbox input type.
 */
export const Checkbox: FC<CheckboxProps> = (props) => (
  // eslint-disable-next-line react/jsx-no-literals -- Type allowed
  <BooleanField {...props} type="checkbox" />
);
 |