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 elements:
VARIANT
The best part is you can do this with any button variant, too:
ANIMATED DROPDOWN
Add .dropdown-menu-animated to a .dropdown-menu to have animated dropdown menu.
DROPUP VARIATION
Trigger dropdown menus above elements by adding .dropup to the parent element.
DROPEND VARIATION
Trigger dropdown menus at the right of the elements by adding .dropend to the parent element.
DISABLED ITEM
Add .disabled to items in the dropdown to style them as disabled.
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 ALIGNMENT
Add .dropdown-menu-end to a .dropdown-menu to right align the dropdown menu.
SPLIT BUTTON DROPDOWNS
Similarly, create split button dropdowns with virtually the same markup as single button dropdowns, but with the addition of .dropdown-toggle-split for proper spacing around the dropdown caret.
SIZING
Button dropdowns work with buttons of all sizes, including default and split dropdown buttons.
DROPSTART VARIATION
Similarly, create split button dropdowns with virtually the same markup as single button dropdowns, but with the addition of .dropdown-toggle-split for proper spacing around the dropdown caret.
ACTIVE ITEM
Add .active to item in the dropdown to style them as active.
HEADERS
Add a header to label sections of actions in any dropdown menu.
FORMS
Put a form within a dropdown menu, or make it into a dropdown menu, and use margin or padding utilities to give it the negative space you require.