<!-- Solid button group -->
<div class="btn-group" role="group" aria-label="Solid button group">
<button type="button" class="btn btn-primary">Left</button>
<button type="button" class="btn btn-primary">Middle</button>
<button type="button" class="btn btn-primary">Right</button>
</div>
<!-- Outline button group -->
<div class="btn-group" role="group" aria-label="Outline button group">
<button type="button" class="btn btn-outline-primary">Left</button>
<button type="button" class="btn btn-outline-primary">Middle</button>
<button type="button" class="btn btn-outline-primary">Right</button>
</div>
<!-- Pill solid button group -->
<div class="btn-group" role="group" aria-label="Pill solid button group">
<button type="button" class="btn btn-pill btn-primary">Left</button>
<button type="button" class="btn btn-pill btn-primary">Middle</button>
<button type="button" class="btn btn-pill btn-primary">Right</button>
</div>
<!-- Pill outline button group -->
<div class="btn-group" role="group" aria-label="Pill outline button group">
<button type="button" class="btn btn-pill btn-outline-primary">Left</button>
<button type="button" class="btn btn-pill btn-outline-primary">Middle</button>
<button type="button" class="btn btn-pill btn-outline-primary">Right</button>
</div>
// Solid button group
.btn-group(role="group", aria-label="Solid button group")
button(type="button").btn.btn-primary
| Left
button(type="button").btn.btn-primary
| Middle
button(type="button").btn.btn-primary
| Right
// Outline button group
.btn-group(role="group", aria-label="Outline button group")
button(type="button").btn.btn-outline-primary
| Left
button(type="button").btn.btn-outline-primary
| Middle
button(type="button").btn.btn-outline-primary
| Right
// Pill solid button group
.btn-group(role="group", aria-label="Pill solid button group")
button(type="button").btn.btn-pill.btn-primary
| Left
button(type="button").btn.btn-pill.btn-primary
| Middle
button(type="button").btn.btn-pill.btn-primary
| Right
// Pill outline button group
.btn-group(role="group", aria-label="Pill outline button group")
button(type="button").btn.btn-pill.btn-outline-primary
| Left
button(type="button").btn.btn-pill.btn-outline-primary
| Middle
button(type="button").btn.btn-pill.btn-outline-primary
| Right
<!-- Toolbar with solid buttons -->
<div class="btn-toolbar" role="toolbar" aria-label="Toolbar with button groups">
<div class="btn-group mr-2" role="group" aria-label="First group">
<button type="button" class="btn btn-primary">1</button>
<button type="button" class="btn btn-primary">2</button>
<button type="button" class="btn btn-primary">3</button>
<button type="button" class="btn btn-primary">4</button>
</div>
<div class="btn-group mr-2" role="group" aria-label="Second group">
<button type="button" class="btn btn-primary">5</button>
<button type="button" class="btn btn-primary">6</button>
<button type="button" class="btn btn-primary">7</button>
</div>
<div class="btn-group" role="group" aria-label="Third group">
<button type="button" class="btn btn-primary">8</button>
</div>
</div>
<!-- Toolbar with pill outline buttons -->
<div class="btn-toolbar" role="toolbar" aria-label="Toolbar with button groups">
<div class="btn-group mr-2" role="group" aria-label="First group">
<button type="button" class="btn btn-pill btn-outline-primary">1</button>
<button type="button" class="btn btn-pill btn-outline-primary">2</button>
<button type="button" class="btn btn-pill btn-outline-primary">3</button>
<button type="button" class="btn btn-pill btn-outline-primary">4</button>
</div>
<div class="btn-group mr-2" role="group" aria-label="Second group">
<button type="button" class="btn btn-pill btn-outline-primary">5</button>
<button type="button" class="btn btn-pill btn-outline-primary">6</button>
<button type="button" class="btn btn-pill btn-outline-primary">7</button>
</div>
<div class="btn-group" role="group" aria-label="Third group">
<button type="button" class="btn btn-pill btn-outline-primary">8</button>
</div>
</div>
// Toolbar with solid buttons
.btn-toolbar(role="toolbar", aria-label="Toolbar with button groups")
.btn-group.mr-2(role="group", aria-label="First group")
button(type="button").btn.btn-primary
| 1
button(type="button").btn.btn-primary
| 2
button(type="button").btn.btn-primary
| 3
button(type="button").btn.btn-primary
| 4
.btn-group.mr-2(role="group", aria-label="Second group")
button(type="button").btn.btn-primary
| 5
button(type="button").btn.btn-primary
| 6
button(type="button").btn.btn-primary
| 7
.btn-group(role="group", aria-label="Third group")
button(type="button").btn.btn-primary
| 8
// Toolbar with pill outline buttons
.btn-toolbar(role="toolbar", aria-label="Toolbar with button groups")
.btn-group.mr-2(role="group", aria-label="First group")
button(type="button").btn.btn-pill.btn-outline-primary
| 1
button(type="button").btn.btn-pill.btn-outline-primary
| 2
button(type="button").btn.btn-pill.btn-outline-primary
| 3
button(type="button").btn.btn-pill.btn-outline-primary
| 4
.btn-group.mr-2(role="group", aria-label="Second group")
button(type="button").btn.btn-pill.btn-outline-primary
| 5
button(type="button").btn.btn-pill.btn-outline-primary
| 6
button(type="button").btn.btn-pill.btn-outline-primary
| 7
.btn-group(role="group", aria-label="Third group")
button(type="button").btn.btn-pill.btn-outline-primary
| 8
<div class="btn-group btn-group-lg" role="group" aria-label="...">...</div>
<div class="btn-group" role="group" aria-label="...">...</div>
<div class="btn-group btn-group-sm" role="group" aria-label="...">...</div>
.btn-group.btn-group-lg(role="group" aria-label="...")
| ...
.btn-group(role="group" aria-label="...")
| ...
.btn-group.btn-group-sm(role="group" aria-label="...")
| ...
<!-- Button group with nested dropdown -->
<div class="btn-group" role="group" aria-label="Button group with nested dropdown">
<button type="button" class="btn btn-primary">1</button>
<button type="button" class="btn btn-primary">2</button>
<div class="btn-group" role="group">
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropdown
</button>
<div class="dropdown-menu">
<a href="#" class="dropdown-item">Dropdown link</a>
<a href="#" class="dropdown-item">Dropdown link</a>
<a href="#" class="dropdown-item">Dropdown link</a>
</div>
</div>
</div>
<!-- Button group with nested dropdown -->
<div class="btn-group" role="group" aria-label="Button group with nested dropdown">
<button type="button" class="btn btn-pill btn-outline-primary">1</button>
<button type="button" class="btn btn-pill btn-outline-primary">2</button>
<div class="btn-group" role="group">
<button type="button" class="btn btn-pill btn-outline-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropdown
</button>
<div class="dropdown-menu">
<a href="#" class="dropdown-item">Dropdown link</a>
<a href="#" class="dropdown-item">Dropdown link</a>
<a href="#" class="dropdown-item">Dropdown link</a>
</div>
</div>
</div>
// Button group with nested dropdown
.btn-group(role="group", aria-label="Button group with nested dropdown")
button(type="button").btn.btn-primary
| 1
button(type="button").btn.btn-primary
| 2
.btn-group(role='group')
button(type="button", data-toggle="dropdown", aria-haspopup="true", aria-expanded="false").btn.btn-primary.dropdown-toggle Dropdown
.dropdown-menu
a(href="#").dropdown-item
| Dropdown link
a(href="#").dropdown-item
| Dropdown link
a(href="#").dropdown-item
| Dropdown link
// Button group with nested dropdown
.btn-group(role="group", aria-label="Button group with nested dropdown")
button(type="button").btn.btn-pill.btn-outline-primary
| 1
button(type="button").btn.btn-pill.btn-outline-primary
| 2
.btn-group(role='group')
button(type="button", data-toggle="dropdown", aria-haspopup="true", aria-expanded="false").btn.btn-pill.btn-outline-primary.dropdown-toggle Dropdown
.dropdown-menu
a(href="#").dropdown-item
| Dropdown link
a(href="#").dropdown-item
| Dropdown link
a(href="#").dropdown-item
| Dropdown link
<!-- Verticla button group -->
<div class="btn-group-vertical" role="group" aria-label="Vertical button group">
...
</div>
// Button group with nested dropdown
.btn-group-vertical(role="group", aria-label="Vertical button group")