Button group
CoreRelated actions joined into one surface with hairline dividers: a hover highlight glides between segments, the pressed one answers in place, and an attached menu can close the row.
pnpm dlx shadcn@latest add https://wui.alann.works/r/button-group.jsonAPI Reference
| Prop | Type | Default |
|---|---|---|
items* | ButtonGroupItem[] | required |
menu | ButtonGroupMenu | — |
label* | string | required |
variant | ButtonGroupVariant | — |
size | ButtonGroupSize | — |
orientation | ButtonGroupOrientation | — |
collapseLabels | boolean | — |
disabled | boolean | — |
className | string | — |
style | CSSProperties | — |