Toggle contextual overlays for displaying lists of links or other content.
<!-- Basic dropdown -->
<div class="dropdown-menu">
<a href="#" class="dropdown-item">Regular link</a>
<a href="#" class="dropdown-item">Another regular link</a>
<a href="#" class="dropdown-item active">Active link</a>
<a href="#" class="dropdown-item disabled">Disabled link</a>
</div>
<!-- Dropdown with header and divider -->
<div class="dropdown-menu">
<h6 class="dropdown-header">Dropdown header</h6>
<a href="#" class="dropdown-item">Action</a>
<a href="#" class="dropdown-item">Another action</a>
<div class="dropdown-divider"></div>
<a href="#" class="dropdown-item">Separeted link</a>
</div>
<!-- Dropdown with icons and badges -->
<div class="dropdown-menu">
<a href="#" class="dropdown-item">
<i class="ai-home me-2"></i>
Regular link
<span class="badge bg-secondary ms-2">2</span>
</a>
<a href="#" class="dropdown-item">
<i class="ai-user me-2"></i>
Profile
<span class="badge bg-danger ms-2">3</span>
</a>
<a href="#" class="dropdown-item">
<i class="ai-messages me-2"></i>
Messages
<span class="badge bg-success ms-2">5</span>
</a>
<a href="#" class="dropdown-item">
<i class="ai-settings me-2"></i>
Settings
</a>
</div>
// Basic dropdown
.dropdown-menu
a(href="#").dropdown-item
| Regular link
a(href="#").dropdown-item
| Another regular link
a(href="#").dropdown-item.active
| Active link
a(href="#").dropdown-item.disabled
| Disabled link
// Dropdown with header and divider
.dropdown-menu
h6.dropdown-header
| Dropdown header
a(href="#").dropdown-item
| Action
a(href="#").dropdown-item
| Another action
.dropdown-divider
a(href="#").dropdown-item
| Separated link
// Dropdown with icons and badges
.dropdown-menu
a(href="#").dropdown-item
i.ai-home.me-2
| Home
span.badge.bg-secondary.ms-2
| 2
a(href="#").dropdown-item
i.ai-user.me-2
| Profile
span.badge.bg-danger.ms-2
| 3
a(href="#").dropdown-item
i.ai-messages.me-2
| Messages
span.badge.bg-success.ms-2
| 5
a(href="#").dropdown-item
i.ai-settings.me-2
| Settings
<!-- Basic dark dropdown -->
<div class="dropdown-menu dropdown-menu-dark">
<a href="#" class="dropdown-item">Regular link</a>
<a href="#" class="dropdown-item">Another regular link</a>
<a href="#" class="dropdown-item active">Active link</a>
<a href="#" class="dropdown-item disabled">Disabled link</a>
</div>
<!-- Dark dropdown with header and divider -->
<div class="dropdown-menu dropdown-menu-dark">
<h6 class="dropdown-header">Dropdown header</h6>
<a href="#" class="dropdown-item">Action</a>
<a href="#" class="dropdown-item">Another action</a>
<div class="dropdown-divider"></div>
<a href="#" class="dropdown-item">Separeted link</a>
</div>
<!-- Dark dropdown with icons and badges -->
<div class="dropdown-menu dropdown-menu-dark">
<a href="#" class="dropdown-item">
<i class="ai-home me-2"></i>
Regular link
<span class="badge bg-secondary ms-2">2</span>
</a>
<a href="#" class="dropdown-item">
<i class="ai-user me-2"></i>
Profile
<span class="badge bg-danger ms-2">3</span>
</a>
<a href="#" class="dropdown-item">
<i class="ai-messages me-2"></i>
Messages
<span class="badge bg-success ms-2">5</span>
</a>
<a href="#" class="dropdown-item">
<i class="ai-settings me-2"></i>
Settings
</a>
</div>
// Basic dropdown
.dropdown-menu.dropdown-menu-dark
a(href="#").dropdown-item
| Regular link
a(href="#").dropdown-item
| Another regular link
a(href="#").dropdown-item.active
| Active link
a(href="#").dropdown-item.disabled
| Disabled link
// Dropdown with header and divider
.dropdown-menu.dropdown-menu-dark
h6.dropdown-header
| Dropdown header
a(href="#").dropdown-item
| Action
a(href="#").dropdown-item
| Another action
.dropdown-divider
a(href="#").dropdown-item
| Separated link
// Dropdown with icons and badges
.dropdown-menu.dropdown-menu-dark
a(href="#").dropdown-item
i.ai-home.me-2
| Home
span.badge.bg-secondary.ms-2
| 2
a(href="#").dropdown-item
i.ai-user.me-2
| Profile
span.badge.bg-danger.ms-2
| 3
a(href="#").dropdown-item
i.ai-messages.me-2
| Messages
span.badge.bg-success.ms-2
| 5
a(href="#").dropdown-item
i.ai-settings.me-2
| Settings
<!-- Forms inside dropdown -->
<div class="dropdown-menu" style="width: 19rem;">
<form class="p-4">
<div class="mb-3">
<label for="exampleDropdownFormEmail" class="form-label">Email address</label>
<input type="email" class="form-control" id="exampleDropdownFormEmail" placeholder="email@example.com" required>
</div>
<div class="mb-3">
<label for="exampleDropdownFormPassword" class="form-label">Password</label>
<input type="password" class="form-control" id="exampleDropdownFormPassword" placeholder="Password" required>
</div>
<div class="mb-3">
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="dropdownCheck">
<label for="dropdownCheck" class="custom-control-label">Remember me</label>
</div>
</div>
<button type="submit" class="btn btn-primary">Sign In</button>
</form>
</div>
// Forms inside dropdown
.dropdown-menu(style="width: 19rem;")
form.p-4
.mb-3
label.form-label(for="exampleDropdownFormEmail")
| Email address
input(type="email", id="exampleDropdownFormEmail", placeholder="email@example.com", required).form-control
.mb-3
label.form-label(for="exampleDropdownFormPassword")
| Password
input(type="password", id="exampleDropdownFormPassword", placeholder="Password", required).form-control
.mb-3
.custom-control.custom-checkbox
input(type="checkbox", id="dropdownCheck").custom-control-input
label(for="dropdownCheck").custom-control-label
| Remember me
button(type="submit").btn.btn-primary
| Sign In
<!-- Dropdown -->
<div class="btn-group dropdown">
<button type="button" class="btn btn-outline-secondary dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropdown
</button>
<div class="dropdown-menu my-1">
<a href="#" class="dropdown-item">Action</a>
<a href="#" class="dropdown-item">Another action</a>
<div class="dropdown-divider"></div>
<a href="#" class="dropdown-item">Something else here</a>
</div>
</div>
<!-- Dropup -->
<div class="btn-group dropup">
<button type="button" class="btn btn-outline-secondary dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropup
</button>
<div class="dropdown-menu my-1">
<a href="#" class="dropdown-item">Action</a>
<a href="#" class="dropdown-item">Another action</a>
<div class="dropdown-divider"></div>
<a href="#" class="dropdown-item">Something else here</a>
</div>
</div>
<!-- Dropend -->
<div class="btn-group dropend">
<button type="button" class="btn btn-outline-secondary dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropend
</button>
<div class="dropdown-menu mx-1">
<a href="#" class="dropdown-item">Action</a>
<a href="#" class="dropdown-item">Another action</a>
<div class="dropdown-divider"></div>
<a href="#" class="dropdown-item">Something else here</a>
</div>
</div>
<!-- Dropstart -->
<div class="btn-group dropstart">
<button type="button" class="btn btn-outline-secondary dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropstart
</button>
<div class="dropdown-menu mx-1">
<a href="#" class="dropdown-item">Action</a>
<a href="#" class="dropdown-item">Another action</a>
<div class="dropdown-divider"></div>
<a href="#" class="dropdown-item">Something else here</a>
</div>
</div>
// Dropdown
.btn-group.dropdown
button(type="button", data-bs-toggle="dropdown", aria-haspopup="true", aria-expanded="false").btn.btn-outline-secondary.dropdown-toggle
| Dropdown
.dropdown-menu.my-1
a(href="#").dropdown-item
| Action
a(href="#").dropdown-item
| Another action
.dropdown-divider
a(href="#").dropdown-item
| Something else here
// Dropup
.btn-group.dropup
button(type="button", data-bs-toggle="dropdown", aria-haspopup="true", aria-expanded="false").btn.btn-outline-secondary.dropdown-toggle
| Dropup
.dropdown-menu.my-1
a(href="#").dropdown-item
| Action
a(href="#").dropdown-item
| Another action
.dropdown-divider
a(href="#").dropdown-item
| Something else here
// Dropend
.btn-group.dropend
button(type="button", data-bs-toggle="dropdown", aria-haspopup="true", aria-expanded="false").btn.btn-outline-secondary.dropdown-toggle
| Dropend
.dropdown-menu.mx-1
a(href="#").dropdown-item
| Action
a(href="#").dropdown-item
| Another action
.dropdown-divider
a(href="#").dropdown-item
| Something else here
// Dropstart
.btn-group.dropstart
button(type="button", data-bs-toggle="dropdown", aria-haspopup="true", aria-expanded="false").btn.btn-outline-secondary.dropdown-toggle
| Dropstart
.dropdown-menu.mx-1
a(href="#").dropdown-item
| Action
a(href="#").dropdown-item
| Another action
.dropdown-divider
a(href="#").dropdown-item
| Something else here
<!-- Right-aligned dropdown -->
<div class="btn-group dropdown">
<button type="button" class="btn btn-primary dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Right-aligned menu example
</button>
<div class="dropdown-menu dropdown-menu-end my-1">
<a href="#" class="dropdown-item">Action</a>
<a href="#" class="dropdown-item">Another action</a>
<div class="dropdown-divider"></div>
<a href="#" class="dropdown-item">Something else here</a>
</div>
</div>
// Right-aligned dropdown
.btn-group.dropdown
button(type="button", data-bs-toggle="dropdown", aria-haspopup="true", aria-expanded="false").btn.btn-primary.dropdown-toggle
| Right-aligned menu example
.dropdown-menu.dropdown-menu-end.my-1
a(href="#").dropdown-item
| Action
a(href="#").dropdown-item
| Another action
.dropdown-divider
a(href="#").dropdown-item
| Something else here
<!-- Solid split button -->
<div class="btn-group">
<button type="button" class="btn btn-primary">Button</button>
<button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="visually-hidden">Toggle dropdown</span>
</button>
<div class="dropdown-menu my-1">
...
</div>
</div>
<!-- Outline split button -->
<div class="btn-group">
<button type="button" class="btn btn-outline-primary">Button</button>
<button type="button" class="btn btn-outline-primary dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="visually-hidden">Toggle dropdown</span>
</button>
<div class="dropdown-menu my-1">
...
</div>
</div>
// Solid split button
.btn-group
button(type="button").btn.btn-primary
| Button
button(type="button", data-bs-toggle="dropdown", aria-haspopup="true", aria-expanded="false'").btn.btn-primary.dropdown-toggle.dropdown-toggle-split
span.visually-hidden
| Toggle dropdown
.dropdown-menu.my-1
| ...
// Outline split button
.btn-group
button(type="button").btn.btn-outline-primary
| Button
button(type="button", data-bs-toggle="dropdown", aria-haspopup="true", aria-expanded="false'").btn.btn-outline-primary.dropdown-toggle.dropdown-toggle-split
span.visually-hidden
| Toggle dropdown
.dropdown-menu.my-1
| ...