skills/daisyui/components/dropdown.md
A dropdown can open a menu or another element when the user clicks the button.
dropdowndropdown-contentdropdown-start, dropdown-center, dropdown-end, dropdown-top, dropdown-bottom, dropdown-left, dropdown-rightdropdown-hover, dropdown-open, dropdown-closePopover API:
<button popovertarget="{id}" style="anchor-name:--{anchor}">{button}</button>
<ul class="dropdown" popover id="{id}" style="position-anchor:--{anchor}">{CONTENT}</ul>
The details and summary elements open and close only when the user clicks them:
<details class="dropdown">
<summary>Button</summary>
<ul class="dropdown-content">{CONTENT}</ul>
</details>
{MODIFIER} is optional. It can include one modifier class name and one placement class name.{id} and {anchor} with the same name. Do not use this name for another element.<ul>. It can be a different HTML element.dropdown. Do not use dropdown-content.