<a>
elements: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 left 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.
If you want to use responsive alignment, disable dynamic positioning by adding the data-display="static"
attribute and use the responsive variation classes.
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
.
Add a header to label sections of actions in any dropdown menu.
Separate groups of related menu items with a divider.
Place any freeform text within a dropdown menu with text and use spacing utilities. Note that youâll likely need additional sizing styles to constrain the menu width.
Use data-offset
or data-reference
to change the location of the dropdown.