Components

Button Group

The Button group defines behavior and usage for sets of two buttons.

Overview

A button group is a grouping of buttons whose actions are related to each other.

Too many calls to action will overwhelm and confuse users so they should be avoided.

Types

A button group can be either horizontal or vertical in its orientation. By default, a button group is horizontal. Use vertical option when horizontal space is limited.

Horizontal

Space Between

Left Aligned

Right Aligned

Vertical

Placement

Groups have the primary action aligned to the right by default but may be flipped.

Margin and Padding

Button groups have 0px built in padding around them and needs to be added during setup.

Border

Button groups used under scrollable bodies must always have borders.

Borders in other cases are optional.

Tokens

BG = $global-static-surface-primary-color-default
Border = $global-static-border-primary-color-default

keyboard_double_arrow_up