Checkbox
Checkbox — Prism component.
Signature
Density
Viewport
Theme follows the navbar ☀/☾ toggleWhen to use
Checkbox — Prism component.
Accessibility
Always render a visible <label> (the label prop wires htmlFor/id for you). Errors set aria-invalid and are announced via aria-describedby. Required fields expose aria-required.
Import
const { Checkbox } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
isSelected | boolean | — | Controlled checked state. |
defaultSelected | boolean | — | |
isIndeterminate | boolean | — | |
isDisabled | boolean | — | |
onChange | (isSelected: boolean, e: React.ChangeEvent) => void | — | |
children | React.ReactNode | — | |
className | string | — |