Expanding button group

Core

Icon buttons in a compact group: the one you point at or focus grows to reveal its label while its neighbours slide aside, and an action confirms in place.

pnpm dlx shadcn@latest add https://wui.alann.works/r/expanding-button-group.json

API Reference

PropTypeDefault
items*readonly ExpandingButtonGroupItem[]required
label*stringrequired
sizeExpandingButtonGroupSize—
defaultExpandedstring | null—
onAction(id: string) => void—
confirmDurationnumber—
classNamestring—
styleCSSProperties—
Categories
actions
Dependencies
motion