Actions

Button group

Buttons joined into one row, divided by a hairline instead of a gap.

Examples

Button group

Primary

Between two primary buttons the separator is a translucent line of the contrast colour.

Anatomy

.btn-groupInline row that removes the gaps.
> .btnTwo or more buttons. Each after the first draws a 1px separator on its start edge.

Accessibility

  • Give the group role="group" and an aria-label when the buttons only make sense together.
  • For a single choice among options, use a segmented control: it is a radio group and announces the selection.
Jump to
ProportionFoundations
MaterialFoundations
PresetsFoundations
ShellLayouts · Application
Container and stacksLayouts · Pages
SplitLayouts · Pages
Grid, bento, masonryLayouts · Pages
Switcher and rowLayouts · Pages
↑↓Move↵OpenescClose