Dropdown Menu
Section Menu
A dropdown split into sections with visible group headings and separators, so a long list of commands stops reading as one wall.
What you can change
- the button caption through trigger
- the side it opens to through align
- the sections and their items through sections
A link for your AI agent: preview, code and instructions.
Preview
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.ru/c/dropdown-002?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
For developers
The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.
Technical notes
One file, zero dependencies, the palette in the --vibeui-dropdown-002-* variables. A client component: an arrow handler walks the focus across the items. Opening, the top layer, Escape and the outside click are held by the HTML popover; the placement beside the button is CSS anchor positioning (anchor-name on the trigger, position-area on the menu) inside @supports, so without anchors the menu simply opens in the middle of the screen. The sections are marked up as role=group with aria-labelledby pointing at the visible heading, with a role=separator between them. The align prop changes the side it opens to with a single position-area rule. The root carries its own surface and border, and their lightness comes from the surrounding color-scheme through light-dark().
Tags
- menu
- dropdown
- sections
- popover
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…