Checkbox
Collect an independent choice in a form, such as accepting terms or granting a permission.
Basic usage
Use Checkbox.Label to name the control and Field.Description to explain the requirement. For partial selection, pass checked="indeterminate".
Required to create an account.
API
Key props and defaults.
| Prop | Values and behavior | Default |
|---|---|---|
checked | boolean | indeterminate | — |
defaultChecked | boolean | indeterminate | false |
onCheckedChange | (details) => void | — |
required | boolean | false |
readOnly | boolean | false |