title | metaTitle | metaDescription | githubUrl |
---|---|---|---|
ButtonGroup |
Bootstrap 5 ButtonGroup - Bootstrap CSS tutorial |
A Bootstrap 5 button group is a vertical column that groups together a number of buttons into a single line or stack. |
A Bootstrap 5 ButtonGroup is a vertical column that bundles a set of buttons into a single line or stack.
Applications of Bootstrap 5 ButtonGroup:
- Group of pricing options
- Buying a a group of licenses from our PRO CDB website
<div class="btn-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>
<div class="btn-group">
<button type="button" class="btn btn-warning btn-rounded">Left</button>
<button type="button" class="btn btn-success btn-rounded">Middle</button>
<button type="button" class="btn btn-secondary btn-rounded">Right</button>
</div>
<div class="btn-group" role="group" aria-label="Basic example">
<button type="button" class="btn btn-warning">Left</button>
<button type="button" class="btn btn-success">Middle</button>
<button type="button" class="btn btn-secondary">Right</button>
</div>
<div class="btn-group" role="group" aria-label="Basic example">
<button type="button" class="btn btn-info">Left</button>
<button type="button" class="btn btn-dark">Middle</button>
<button type="button" class="btn btn-danger">Right</button>
</div>
Make a group of buttons appear vertically stacked instead of horizontally stacked.
<div class="btn-group-vertical" role="group" aria-label="Basic example">
<button type="button" class="btn btn-primary">Click me</button>
<button type="button" class="btn btn-secondary">Click me</button>
<button type="button" class="btn btn-info">Click me</button>
<button type="button" class="btn btn-success">Click me</button>
<button type="button" class="btn btn-danger">Click me</button>
<button type="button" class="btn btn-warning">Click me</button>
</div>
<div class="btn-group btn-group-lg" role="group" aria-label="Basic example">
<button type="button" class="btn btn-dark">button</button>
<button type="button" class="btn btn-dark">button</button>
<button type="button" class="btn btn-dark">button</button>
</div>
<div class="btn-group" role="group" aria-label="Basic example">
<button type="button" class="btn btn-warning">button</button>
<button type="button" class="btn btn-warning">button</button>
<button type="button" class="btn btn-warning">button</button>
</div>
<div class="btn-group btn-group-sm" role="group" aria-label="Basic example">
<button type="button" class="btn btn-dark">button</button>
<button type="button" class="btn btn-dark">button</button>
<button type="button" class="btn btn-dark">button</button>
</div>