SegmentedControl
One choice out of a few, shown as a joined strip of options. Real radios under the hood — no JavaScript.
Example
<SegmentedControl name="range" label="Date range" options={["Day", "Week", "Month"]} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
name | string | - | Shared radio name; message ids derive from it. |
label | string | - | Legend text. |
options | Array<string | { value; label; disabled? }> | - | Options as strings or value/label objects. |
value | string | first option | Initially checked value. |
hint / error | string | - | Wired via aria-describedby on the fieldset. |
Accessibility
- Arrow keys move between options natively; Tab enters and leaves the group once.
fieldset+legendgives each radio its group context.