Form Inputs
Checkbox
A checkbox allows a user to select multiple items from a list of individual items, or to mark one individual item as selected.
Accept terms and conditions.
Indeterminate#
Accept terms and conditions.
Disabled#
Accept terms and conditions.
Component props#
| Name | Type | Description |
|---|---|---|
| label | string | Label text (alternative to children) |
| isSelected | boolean | Controlled selected state |
| defaultSelected | boolean | Default selected state |
| isIndeterminate | boolean | Shows indeterminate state |
| isDisabled | boolean | Disables the checkbox |
| onChange | (isSelected: boolean) => void | Called when state changes |
