Forms
Checkbox
stableBinary choice with indeterminate state and grouped variants.
since v1.01.6 kB gzip
Preview
Installation
npx @strata/cli add checkboxUsage
import { Checkbox } from "@/components/strata";
<Checkbox defaultSelected description="We'll email you once a week.">
Product updates
</Checkbox>Props
| Prop | Type | Default |
|---|---|---|
isSelectedControlled checked state. | boolean | — |
isIndeterminateShows a dash for partial selection. | boolean | false |
descriptionSecondary text under the label. | ReactNode | — |
isDisabledPrevents interaction and dims the control. | boolean | false |
Accessibility
Related
Text field
Single-line input with label, description, validation and adornments.
Select
Pick one option from a list, with typeahead and sections.
Switch
Instant on/off setting, typically in settings lists.
Slider
Choose a value or range along a track, with steps and output.
Was this page helpful?
Documented since v1.0 · components/checkbox.mdx