Components

Button Group

Groups multiple buttons together with shared borders and consistent sizing.

Loading

Installation

pnpm dlx shadcn@latest add @toui/button-group

Examples

Default (Attached)

Loading

Spaced

Loading

Vertical

Loading

With Icons

Loading

Sizes

Loading

Pattern

Tokens

1 CSS variable in 1 categories.

gap

CSS VariableValueDescription
--button-group-gapvar(--component-gap-xs)Gap between buttons when not attached

API Reference

ButtonGroup

PropTypeDefault
orientation"horizontal" | "vertical""horizontal"
attachedbooleantrue

Credits

We use cookies

We use cookies to ensure you get the best experience on our website. For more information on how we use cookies, please see our cookie policy.

By clicking Accept, you agree to our use of cookies.
Learn more.