Single button

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:

Even with ghost buttons.

Sizing

Button dropdowns work with buttons of all sizes.

Also, .dropdown-menu-lg and .dropdown-menu-sm sizes available for menu.

With icon

Use .dropdown-item-icon for icons.

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.

Dropleft

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

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.

Hover effect

Add hover animation with hs-unfold.js.

Turns the default Bootstrap dropdown menu into a fully functional .card component. Utilize any available card options.

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