Bootstrap 5 sidebars provide vertical navigation for dashboards and admin panels. This page covers 4 sidebar patterns โ basic, dark, collapsible and icon-only โ each built with Bootstrap utilities.
Quick Setup
Sidebars require Bootstrap 5 JS for collapse:
<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.flex-column | Vertical nav stack |
.nav-link | Each sidebar link |
.nav-link.active | Currently selected item |
.position-sticky | Sticks sidebar on scroll |
data-bs-toggle="collapse" | Toggles sub-menu |
.offcanvas | Mobile slide-in sidebar |
1. Basic Bootstrap 5 Sidebar
A simple vertical sidebar navigation with active state and hover effects.
2. Bootstrap 5 Dark Sidebar
Dark themed sidebar for admin dashboards and SaaS applications.
3. Bootstrap 5 Collapsible Sidebar Menu
Sidebar with collapsible sub-menu sections using Bootstrap collapse component.
4. Bootstrap 5 Icon-Only Collapsed Sidebar
A compact icon-only sidebar that expands on hover. Common in modern 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.