Segmented Control
Single-select with a pill that slides to the choice.
a11ymotion
Customize
Options (comma-separated)
The first option is selected by default.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
options* | string[] | — | The selectable options. |
value | string | — | Controlled selected option. |
defaultValue | string | options[0] | Initial selection when uncontrolled. |
onValueChange | (value: string) => void | — | Fired on selection. |
className | string | — | Extra classes. |