Dropdown button

A button dropdown (menu button) always shows a list of commands when clicked, and selecting one of them performs that command immediately

Use any button to trigger a dropdown menu by placing it within a .btn-group and providing the proper menu markup.

Use when:

  • To gather a small set of related actions or commands
  • The screen real estate is limited and there is no space to display every action as its own button
  • The actions do not have to be instantly available.

Single button with dropdown

Turn a button into a dropdown toggle with some basic markup changes.

Disabled

Just add .disabled class on the main div that is wrapping the button (.dropdown), on the parent or on button (.btn) or only the attribute on the button tag.

Large dropdowns

Just add .btn-lg class on the button.


Drop-up

Add .dropup to open the dropdown menu above the button instead of below.

Additional examples

The following examples are also used by our Playwright CSS property assertion tests.

Small single-button dropdowns

Add .btn-sm to the dropdown toggle button for a smaller variant.