Floating button group

Core

Separate soft buttons in a quiet tray, with one shared highlight that morphs from button to button as you move, and a pressed state that settles in place.

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

API Reference

PropTypeDefault
items*readonly FloatingButtonGroupItem[]required
label*stringrequired
variantFloatingButtonGroupVariant—
sizeFloatingButtonGroupSize—
orientationFloatingButtonGroupOrientation—
iconOnlyboolean—
tooltipSide"top" | "bottom" | "left" | "right"—
onAction(id: string) => void—
classNamestring—
styleCSSProperties—
Categories
actions
Dependencies
@radix-ui/react-tooltipmotion