Bootstrap 5 button groups combine multiple buttons into a single unit. This page covers 4 patterns — basic group, toolbar, vertical and radio/checkbox groups — each ready to use in filters, editors and toolbars.
Quick Setup
Button groups need only Bootstrap 5 CSS:
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"/>
Key Classes Reference
| Class | What It Does |
|---|---|
.btn-group | Horizontal button group wrapper |
.btn-group-vertical | Vertical button group |
.btn-group-sm | Small size for all buttons in group |
.btn-group-lg | Large size for all buttons in group |
.btn-toolbar | Container for multiple button groups |
.btn-check | Hidden checkbox/radio for toggle buttons |
1. Basic Bootstrap 5 Button Group
Buttons grouped together with no gaps using btn-group wrapper.
2. Bootstrap 5 Button Toolbar
Multiple button groups combined into a toolbar using btn-toolbar.
3. Bootstrap 5 Vertical Button Group
Stack buttons vertically using btn-group-vertical instead of btn-group.
4. Bootstrap 5 Radio and Checkbox Button Groups
Toggle-style radio and checkbox buttons that look like button groups. No custom JavaScript needed.
Frequently Asked Questions
Need a Full Bootstrap 5 Admin Dashboard?
Get a complete Angular 21 + Bootstrap 5 dashboard with 50+ components — built by the same team behind BootstrapPlanet.
Browse Templates →Use code FIRST30 for 30% off your first purchase.