Bootstrap Dropdowns

Single button dropdowns

And with <a> elements:

Using button variants

Split button dropdowns

Sizing


Directions

Dropup

Trigger dropdown menus above elements by adding .dropup to the parent element.

Dropright

Trigger dropdown menus at the right of the elements by adding .dropright to the parent element.

Dropright

Trigger dropdown menus at the left of the elements by adding .dropleft to the parent element.


Buttons Menu items

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.


Menu alignment

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.

Responsive alignment

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.


Menu content

Headers

Add a header to label sections of actions in any dropdown menu.


Dividers

Separate groups of related menu items with a divider.


Text

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.


Menu forms


Dropdown options

Use data-offset or data-reference to change the location of the dropdown.