Button group

Core

Related 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.json

API Reference

PropTypeDefault
items*ButtonGroupItem[]required
menuButtonGroupMenu—
label*stringrequired
variantButtonGroupVariant—
sizeButtonGroupSize—
orientationButtonGroupOrientation—
collapseLabelsboolean—
disabledboolean—
classNamestring—
styleCSSProperties—
Categories
actions
Dependencies
@radix-ui/react-dropdown-menulucide-reactmotion