primitives/@mihcm/ui·v0.21.0·stable
Checkbox
Controlled checkbox with three states — true, false, "indeterminate". aria-checked="mixed" for indeterminate.
Props
The full prop API for Checkbox. Same surface in web and React Native — bundlers pick the right variant via the react-native export condition.
| Prop | Type | Default | Description | Since |
|---|---|---|---|---|
checked | boolean | 'indeterminate' | — | Controlled state. Required. | 0.3.0 |
onCheckedChange | (checked: boolean | 'indeterminate') => void | — | Called on click. Required. | 0.3.0 |
size | 'sm' | 'md' | 'lg' | 'md' | Height + width. `md` is 20 px. | 0.3.0 |
disabled | boolean | false | Standard disabled state. | 0.3.0 |
Import
import { Checkbox } from '@mihcm/ui/Checkbox';