Skip to content

Button Group

Group button elements together.

Installation

Anatomy

Usage

Accessibility

  • Use aria-label or aria-labelledby to label the group.

Orientation

Horizontal

Vertical

Examples

Nested

Separator

Buttons with variant outline do not need a separator since they have a border.

With Input

With Menu

With Popover

A popover trigger button can be added to a button group for contextual information or actions.

API Reference

ButtonGroup

Groups buttons together. Uses fieldset for accessibility when applicable.

ButtonGroupSeparator

Visual divider between buttons. Uses Separator internally.