Button Group

A container that groups related buttons together with consistent styling.

Usage

Simply wrap buttons you want to group together in a <div role="group" class="button-group"> element. You can also use the data-orientation="vertical" attribute to stack buttons vertically. You can also group buttons with dropdown menus or popovers (provided the trigger is a button). Finally, you can use a separator to visually divide buttons within a group (for secondary buttons for example).

<div role="group" class="button-group">
  <button type="button" class="btn-outline">Archive</button>
  <button type="button" class="btn-outline">Report</button>
</div>

Examples

Orientation

Use data-orientation="vertical" to stack buttons vertically.

Size

Nested

Separator

Use <hr role="separator"> to visually divide buttons within a group.


Input

Dropdown Menu

Select

Popover