Components · Forms
Segmented
A row of latched keys for two to four mutually exclusive options. Accepts text or icons.
jsx
import { Segmented } from '@andeus/ui';
Text and icons
Props
| Prop | Type | Default | |
|---|---|---|---|
| options | Array<string | { value, label?, icon? }> | Required | |
| value | string | first option | Controlled with onChange; or pass defaultValue / defaultChecked. |
| size | 's' | 'm' | 'm' | |
| label | string | — | Printed under the control. |