The dropdown-el
element opens a menu on click.
Clicking outside the element closes the dropdown menu.
dropdown-item
is the child element used for dropdown elements. A dropdown-item
can act as a link or a button. To use as a link, add an href
attribute. To use as a button, attach a click event.