# Dropdown Menu Native dropdown menu using HTML popover API and CSS anchor positioning. No JavaScript required for open/close. ## Basic Example ```html ``` ## How It Works - `popovertarget` on the button points to the menu's `id` - `popover` attribute enables native popover behavior - `.dropdown-menu` provides styling and positioning - Clicking outside automatically closes the menu ## With Section Headers ```html ``` ## End-Aligned (Right) Use `.end` to align menu to the right edge of the trigger: ```html ``` ## Disabled Items ```html Edit (disabled) Edit (disabled) ``` ## Menu Item Types Links and buttons inside `.dropdown-menu` are automatically styled: ```html ``` ## See Also - [User menu](https://graffiti-ui.com/llms/user-menu.txt) - Avatar + dropdown pattern - [Sidebar navigation](https://graffiti-ui.com/llms/sidebar-nav.txt) - Vertical nav with collapsible sections