skills/daisyui/components/dropdown.md
Dropdown can open a menu or any other element when the button is clicked
dropdowndropdown-contentdropdown-start, dropdown-center, dropdown-end, dropdown-top, dropdown-bottom, dropdown-left, dropdown-rightdropdown-hover, dropdown-open, dropdown-closeUsing popover API
<button popovertarget="{id}" style="anchor-name:--{anchor}">{button}</button>
<ul class="dropdown" popover id="{id}" style="position-anchor:--{anchor}">{CONTENT}</ul>
Using details and summary (only opens/closes on click)
<details class="dropdown">
<summary>Button</summary>
<ul class="dropdown-content">{CONTENT}</ul>
</details>
{id} and {anchor} with a unique name<ul>)dropdown-content. Only button and a dropdown