Buttons

Button group

Button group arranges related actions in a single horizontal or vertical container, managing spacing, focus order, and responsive wrapping so buttons remain cohesive, balanced, and accessible across breakpoints and input methods.

Basic

A button allows users to perform actions through clicks, presses, taps, or keystrokes.

Loading...

Installation

npx shadcn@latest add @intentui/button-group

Manual installation

npm i tailwind-variants

Anatomy

import { ButtonGroup } from "@/components/ui/button-group";
import { Button } from "@/components/ui/button";
<ButtonGroup>
  <Button/>
</ButtonGroup>

Orientation

You can arrange buttons either horizontally or vertically using the orientation prop.

Loading...

Group with menu

You can combine button groups with menus to create a more complex and interactive UI.

Loading...

Group with text

You can also combine button groups with text to provide context or instructions.

Loading...
Unlock the full power of
Design Intent UI
Build modern web apps faster with 450+ blocks and polished templates crafted for you.
Claim 35% Off