Checkbox.
Native checkbox styled to match the system.
The preview uses the actual shared component, including your current theme, rounding, border and motion preferences.
Props & API reference
Parameters available in the shared component, including value types, requirements and accepted options.
| Parameter | Type | Required | Default | Possible values | Description |
|---|---|---|---|---|---|
checked | boolean | No | — | true · false | Controlled checked state. |
defaultChecked | boolean | No | false | true · false | Initial uncontrolled checked state. |
disabled | boolean | No | false | true · false | Disable the checkbox. |
required | boolean | No | false | true · false | Native required state. |
onChange | ChangeEventHandler<HTMLInputElement> | No | — | — | Called when toggled. |
aria-label | string | No | — | — | Accessible name when there is no visible label. |