.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:
.dropdown-toggle-split
for proper spacing around the dropdown caret.
.dropdown-menu-right
to a .dropdown-menu
to right align the dropdown menu.
.dropup
to the parent element.
.dropright
to the parent element.
.dropleft
to the parent element.