Segmented control

Core

Switch between a small set of related views.

pnpm dlx shadcn@latest add https://wui.alann.works/r/segmented-control.json

API Reference

PropTypeDefault
options*Segment[]required
value*stringrequired
onValueChange*(value: string) => voidrequired
labelstring—
onOptionIntent(value: string) => void—
classNamestring—
Categories
inputs
Dependencies
motion