UNPKG

react-three-state-checkbox

Version:

React component for checkbox that supports the indeterminate state conveniently. Edit

12 lines (11 loc) 434 B
import { ReactElement, CSSProperties, ChangeEvent } from 'react'; export interface CheckboxProps { checked: boolean; indeterminate?: boolean; className?: string; style?: CSSProperties; disabled?: boolean; onChange?: (e: ChangeEvent<HTMLInputElement>) => void; } declare const Checkbox: ({ checked, indeterminate, className, style, disabled, onChange }: CheckboxProps) => ReactElement; export default Checkbox;