Advertisement
Google Ad Slot: content-top
Bootstarp 5 Dropdown
Dropdowns in Bootstrap 5 are versatile and used to display a list of links or options that appear when triggered by a button, link, or other interactive element.
Basic Dropdown:
Use .dropdown with .dropdown-menu to create a basic dropdown.
Dropdown with Dividers:
Use .dropdown-divider to separate groups of items.
Dropdown with Headers:
Use .dropdown-header to add headers to the dropdown menu.
Dropdown with Disabled Items:
Use .disabled to disable items in the dropdown menu.
Alignment Options:
Align the dropdown menu to the right using .dropdown-menu-end.
Dropup Variation:
Change the direction of the dropdown to upward using .dropup.
Dropright and Dropleft:
Create dropdowns that open to the right or left using .dropright and .dropleft.