FORMS
Checkbox
Memphis-bordered checkbox built on Radix Checkbox. Supports tri-state checked / unchecked / indeterminate, plus all native form semantics (name, value, required).
Import
With Label
States
Props
Checkbox props
| Prop | Type | Default | Description |
|---|---|---|---|
| checked | boolean | 'indeterminate' | — | Controlled checked state. Pair with onCheckedChange. |
| defaultChecked | boolean | — | Uncontrolled initial checked state. |
| onCheckedChange | (checked: boolean | "indeterminate") => void | — | Fires whenever the checked state changes. |
| disabled | boolean | — | Disables the input. |
| required | boolean | — | Marks the input as required for native form submission. |
| name | string | — | Name attribute for native form submission. |
Accessibility
- Radix Checkbox renders
role="checkbox"witharia-checkedreflecting the checked state, including"mixed"for the indeterminate case. - Always pair with a
Labelwired viahtmlFor, or supplyaria-labelwhen there is no visible text. - Native keyboard support inherited: Space toggles the checked state.