Bootstrap 5 Basic
Bootstrap 5 Flexbox
Dropdowns in Bootstrap 5 are versatile and used to display a list of links or options that appear when triggered by a button, link, or other interactive element.
Use .dropdown
with .dropdown-menu
to create a basic dropdown.
Try it yourself
Use .dropdown-divider
to separate groups of items.
Try it yourself
Use .dropdown-header
to add headers to the dropdown menu.
Try it yourself
Use .disabled
to disable items in the dropdown menu.
Try it yourself
Align the dropdown menu to the right using .dropdown-menu-end
.
Try it yourself
Change the direction of the dropdown to upward using .dropup
.
Try it yourself
Create dropdowns that open to the right or left using .dropright
and .dropleft
.
Try it yourself