Dropdown Menu
Danger Zone
A menu where the irreversible action is moved into its own zone at the bottom and confirmed in place, instead of sitting next to "duplicate".
What you can change
- the button caption through trigger
- the destructive action's name through dangerLabel
- the ordinary entries through items
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-007?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 --vibeui-dropdown-007-* palette. A client component: useState holds the confirmation step, and the reset happens on the popup's toggle event — a closed menu always reopens in its original state. The danger zone is drawn as a separate block with its own surface, negative margins out to the edges of the menu and a top border, so a mouse slip past the last item of the list does not land in it. The confirmation lives in the same menu: a dialog above an open popover is a second top layer, and there is no way to dismiss them with Escape one at a time. The confirm button is tied to the question through aria-describedby. The palette is moved to light-dark(): in a dark environment the panel is lighter than the page background and its border lighter than the panel.
Tags
- menu
- dropdown
- danger
- confirm
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…