ButtonGroup

Button groups that fuse adjacent buttons into one piece, keeping only the outer corners and adding subtle dividers. Horizontal or vertical, attached or detached.

Props

PropTypeDefaultDescription
orientation'horizontal' | 'vertical''horizontal'Layout direction: horizontal / vertical
attachedbooleantrueWhether buttons are joined: true fuses them, false keeps a gap
childrenReactNode—Buttons inside the group, usually Button
...restHTMLAttributes<HTMLDivElement>—Remaining props are forwarded to the native div