Segmented
Single-select segmented control.
Choose Segmented for one selection among a short set of closely related text options.
Interactive example
Loading interactive example
API
| Member | Type | Kind | Required | Default |
|---|---|---|---|---|
ariaLabel | string | prop | No | undefined |
onValueChange | (value: T) => void | callback | No | undefined |
optionLabel | (value: T) => string | callback | No | undefined |
options | readonly T[] | prop | Yes | |
size | ControlSize | prop | No | 'md' |
value | T | binding | No | undefined as T | undefined |
Examples
Source
Loading source