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-group | Inline row that removes the gaps. |
> .btn | Two or more buttons. Each after the first draws a 1px separator on its start edge. |
Accessibility
- Give the group
role="group"and anaria-labelwhen 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.