Bootstrap 5 tabs organize content into switchable panels. This page covers 4 tab patterns — basic, pill, vertical and icon tabs — each ready to use in dashboards, settings pages and content sections.
Quick Setup
Tabs require Bootstrap 5 JS bundle:
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
Key Classes Reference
| Class | What It Does |
|---|---|
.nav-tabs | Horizontal underline tab style |
.nav-pills | Rounded pill tab style |
.nav-link | Each tab button |
.nav-link.active | Currently selected tab |
.nav-link.disabled | Non-clickable tab |
.tab-content | Wrapper for all tab panels |
.tab-pane | Each tab panel |
.tab-pane.fade | Enables fade animation |
.tab-pane.show.active | Currently visible panel |
data-bs-toggle="tab" | Marks as tab trigger |
data-bs-target="#id" | Links button to panel |
1. Basic Bootstrap 5 Tabs
Standard horizontal tabs with content panels using nav-tabs and tab-content.
2. Bootstrap 5 Pill Tabs
Rounded pill style tabs using nav-pills instead of nav-tabs. Great for dashboard sections.
3. Bootstrap 5 Vertical Tabs
Vertical side navigation tabs using flex-column on nav. Common in settings and admin pages.
4. Bootstrap 5 Tabs with Icons
Tabs with Bootstrap Icons for a more visual interface. Works great in dashboards.
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.