Search...

ButtonGroup

Bootstrap 5 ButtonGroup

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

Basic Button Group

html
<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>

Basic Circular Group

html
<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>

Basic Button Group in Different Groups

html
<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>

Vertical Button Group

Make a group of buttons appear vertically stacked instead of horizontally stacked.

html
<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>

Different Sizing for Button Groups

html
<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>

Build modern projects using Bootstrap 5 and Contrast

Trying to create components and pages for a web app or website from scratch while maintaining a modern User interface can be very tedious. This is why we created Contrast, to help drastically reduce the amount of time we spend doing that. so we can focus on building some other aspects of the project.

Contrast Bootstrap PRO consists of a Premium UI Kit Library featuring over 10000+ component variants. Which even comes bundled together with its own admin template comprising of 5 admin dashboards and 23+ additional admin and multipurpose pages for building almost any type of website or web app.
See a demo and learn more about Contrast Bootstrap Pro by clicking here.