Toggle contextual overlays for displaying lists of links and more with the Bootstrap dropdown plugin.
Any single .btn can be turned into a dropdown toggle with
some markup changes. Here’s how you can put them to work with either <button> elements:
And with <a> elements:
The best part is you can do this with any button variant, too:
Button dropdowns work with buttons of all sizes, including default and split dropdown buttons.
Trigger dropdown menus above elements by adding .dropup to
the parent element.
Trigger dropdown menus at the right of the elements by adding .dropright to the parent element.
Trigger dropdown menus at the right of the elements by adding .dropleft to the parent element.
You can also create non-interactive dropdown items with .dropdown-item-text. Feel free to style further with custom CSS
or text utilities.
Add .active to items in the dropdown to style them
as active.
Add .disabled to items in the dropdown to style
them as disabled.
By default, a dropdown menu is automatically positioned 100% from the top and along the left side
of its parent. Add .dropdown-menu-right to a .dropdown-menu to right align the dropdown menu.
To align right the dropdown menu with the given breakpoint or larger, add .dropdown-menu{-sm|-md|-lg|-xl}-right.
To align left the dropdown menu with the given breakpoint or larger, add .dropdown-menu-right and
.dropdown-menu{-sm|-md|-lg|-xl}-left.
Separate groups of related menu items with a divider.