Bootstrap 5 UI Tutorial

Build fast, responsive sites with Bootstrap 5

BS5 Dropdowns

Bootstrap 5 Dropdowns

A dropdown menu is a toggleable menu that allows the user to choose one value from a predefined list.

How To Create A Dropdown

  • Wrap the dropdown inside a .dropdown class.
  • Use a button or a link with .dropdown-toggle and data-bs-toggle="dropdown" to open it.
  • Add the .dropdown-menu class to a <ul> element to actually build the menu.

Try It Yourself

Edit the code below and click Run to see the result live.

Source Code
Result
Topics