ToggleButtonGroup
ToggleButtonGroup — Prism component.
Signature
Density
Viewport
Theme follows the navbar ☀/☾ toggleWhen to use
ToggleButtonGroup — 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 { ToggleButtonGroup } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
items | ToggleItem[] | Yes | |
value | string | string[] | — | Controlled value: a string (single) or string[] (multiple). |
defaultValue | string | string[] | — | |
selectionMode | "single" | "multiple" | — | |
onChange | (value: string | string[]) => void | — | |
isDisabled | boolean | — | |
className | string | — |