UNPKG

@useloops/design-system

Version:

The official React based Loops design system

25 lines (22 loc) 848 B
import { SxProps, Theme } from '@mui/material'; import { ReactElement, FunctionComponent } from 'react'; import { StyledCheckboxProps } from './StyledCheckbox.js'; interface CheckboxProps { sizing?: StyledCheckboxProps['sizing']; checked?: boolean; indeterminate?: StyledCheckboxProps['indeterminate']; checkboxLabel?: string | ReactElement; internalChange?: () => void; onChange?: (event: React.SyntheticEvent<Element, Event>, checked: boolean) => void; inputRef?: React.RefObject<HTMLInputElement | null>; defaultChecked?: boolean; disabled?: boolean; id?: string; required?: boolean; value?: boolean; variant?: StyledCheckboxProps['variant']; sx?: SxProps<Theme>; } declare const Checkbox: FunctionComponent<CheckboxProps>; export { Checkbox as default }; export type { CheckboxProps };