Skip to content

SegmentedControl

One choice out of a few, shown as a joined strip of options. Real radios under the hood — no JavaScript.

Example

Date range
<SegmentedControl name="range" label="Date range" options={["Day", "Week", "Month"]} />

Props

PropTypeDefaultDescription
namestring-Shared radio name; message ids derive from it.
labelstring-Legend text.
optionsArray<string | { value; label; disabled? }>-Options as strings or value/label objects.
valuestringfirst optionInitially checked value.
hint / errorstring-Wired via aria-describedby on the fieldset.

Accessibility