Forms
Checkbox
A toggle control for boolean values. Built on Base UI primitives with accessible keyboard support and animated check indicator.
Import
import { Checkbox } from "@mikenotthepope/substrateui"With Label
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
checked | boolean | false | The controlled checked state of the checkbox. |
onCheckedChange | (checked: boolean) => void | — | Callback fired when the checked state changes. |
disabled | boolean | false | When true, prevents interaction with the checkbox. |
id | string | — | The id attribute, useful for associating with a label. |