Dropdown Menu
Split Button
A split button: the plain action on the left in a single click, and a separate arrow zone on the right that opens variants of the same action.
What you can change
- the main action label through action
- the variant list through items: label, keys and href on each
- the button fill through accent — the text colour on it is derived
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-019?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-019-* palette. A server component: the HTML popover holds the open state and CSS anchor positioning inside @supports places it, so no JS is needed. The two halves sit in one frame but stay two buttons: each has its own focus and its own label, so from the keyboard it is clear where Enter leads. The seam between them is a border-inline-start in currentColor through color-mix. The menu aligns to the right edge (position-area: bottom span-left) because the arrow sits on the right and the list has to fall inside the layout. The halves take their height from content: min-height plus vertical padding, otherwise a long translated label would spill out. The right column carries keyboard shortcuts in tabular-nums.
Tags
- menu
- dropdown
- split-button
- actions
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…