Segmented control
CoreSwitch between a small set of related views.
pnpm dlx shadcn@latest add https://wui.alann.works/r/segmented-control.jsonAPI Reference
| Prop | Type | Default |
|---|---|---|
options* | Segment[] | required |
value* | string | required |
onValueChange* | (value: string) => void | required |
label | string | — |
onOptionIntent | (value: string) => void | — |
className | string | — |