import * as React from 'react'; type Props = { /** * If you want to use the checkbox as a controlled component, * need to pass onchange function */ checked?: boolean; /** * The checkbox will be indeterminate. * DataTable uses this to show a checkbox with a dash. */ indeterminate?: boolean; /** * Event handler for change, required if you want to use the checkbox as a controlled component */ onChange?: (event: React.ChangeEvent) => void; /** * Disabled attribute */ disabled?: boolean; /** * Name attribute */ name?: string; }; type NativeAttrs = Omit, keyof Props>; export type CheckboxProps = React.PropsWithChildren & NativeAttrs; export {};