Bootstrap 5 navbar dropdowns add multi-level navigation menus to navbars. This page covers 5 dropdown patterns — single, multiple, icons, dividers and mega menu — each with copy-paste HTML.
Quick Setup
Navbar dropdowns require Bootstrap 5 JS:
<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 |
|---|---|
.dropdown | Marks nav-item as dropdown container |
.dropdown-toggle | The clickable trigger link |
.dropdown-menu | The dropdown panel |
.dropdown-item | Each option inside the dropdown |
.dropdown-divider | Horizontal separator line |
.dropdown-header | Non-clickable section label |
.dropdown-menu-end | Right-aligns the dropdown |
.dropdown-menu-dark | Dark themed dropdown |
data-bs-toggle="dropdown" | Activates dropdown on click |
1. Bootstrap 5 Navbar Single Dropdown
A navbar with one dropdown menu. Uses dropdown-toggle and dropdown-menu classes.
2. Bootstrap 5 Navbar with Multiple Dropdowns
Navbar with multiple dropdown menus and a CTA button on the right.
3. Bootstrap 5 Navbar Dropdown with Icons
Dropdown menu items with Bootstrap Icons for a richer, more visual navigation.
4. Bootstrap 5 Dropdown with Dividers and Headers
Organized dropdown with section headers and dividers to group related items.
5. Bootstrap 5 Mega Menu Navbar
A wide multi-column dropdown mega menu. Uses position-static on the nav-item and w-100 on the dropdown.
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.