Toggle Group
Buttons
Segmented control / button group toggle with spring-animated selection indicator using layoutId, three sizes (sm/md/lg), and smooth transitions.
Loading preview...
Customize
Size:
Props
| Prop | Type | Default | Description |
|---|---|---|---|
options | string[] | — | Array of option labels. |
value | string | — | Currently selected option. |
onChange | (value: string) => void | — | Callback when selection changes. |
size | 'sm' | 'md' | 'lg' | 'md' | Size of the toggle buttons. |
className | string | '' | Additional CSS classes. |