Single button dropdowns
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:
Variant
The best part is you can do this with any button variant, too:
Split button dropdowns
The best part is you can do this with any button variant, too:
Sizing
Button dropdowns work with buttons of all sizes, including default and split dropdown buttons. Use the large ones very rarely or never. Use the normal ones in some cases. Use small ones most of the time, since these are internal, business apps.
Again, use the small ones below most of the time, since these are internal, business apps.
Dropup variation
Trigger dropdown menus above elements
by adding .dropup
to the parent
element.
Menu alignment
Add .dropdown-menu-end
to a .dropdown-menu
to right
align the dropdown menu.
Dropright variation
Trigger dropdown menus at the right of the elements by adding .dropend
to the parent element.
Dropleft variation
Trigger dropdown menus at the right of the elements by adding .dropstart
to the parent element.