Dropdowns
Vue Bootstrap 5 Dropdown component
Toggle contextual overlays for displaying lists of links and more with the MDB dropdown plugin.
Note: Read the API tab to find all available options and advanced customization
Basic examples
Wrap the MDBDropdownToggle
(your button or link) and the MDBDropdownMenu
within MDBDropdown
element. Bind any truthy
or falsy
ref value to MDBDropdownMenu
and toggle dropdown with a MDBDropdownToggle
component. MDBDropdownMenu
use semantic <ul>
elements where appropriate, but custom markup is supported.
Colors
You can do this with any button variant:
Sizing
MDBDropdownToggle
work with all button sizes, including default and split dropdown buttons.
Directions
Dropup
Trigger dropdown menus above elements by adding dropup
property to the MDBDropdown
component.
Dropright
Trigger dropdown menus at the right of the elements by adding .dropend
to the parent element.
Dropleft
Trigger dropdown menus at the left of the elements by adding dropstart
property to the MDBDropdown
component.
Remove animation
To remove the fade animation on click, add :animation="false"
attribute to the MDBDRopdownToggle
.
Dropdown options
To change the offset of the dropdown menu add offset="skiddingValue, distanceValue"
property. To change the location of the dropdown menu add target
property with value of selector to expected reference for dropdown.
Dark variant
Add dark
property onto an existing MDBDropdownMenu
to match a dark navbar.