Toggle group
CoreA row of icon or text toggles, single or multiple: one pressed fill glides between options, or each fades in on its own and neighbours join, as in a formatting toolbar.
pnpm dlx shadcn@latest add https://wui.alann.works/r/toggle-group.jsonAPI Reference
| Prop | Type | Default |
|---|---|---|
type | "single" | — |
value | string | null | — |
defaultValue | string | null | — |
onValueChange | (value: string) => void | — |