Context Menu
Clipboard Menu
A clipboard context menu with real state: paste is disabled while the buffer is empty, a cut card disappears and comes back on paste.
What you can change
- the board heading through title
- the cards through cards
- the entry captions through actionText, and the supporting strings through bufferLabel, bufferEmpty, menuButtonLabel and copyText; Russian by default
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/contextmenu-004?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-contextmenu-004-* palette. Client component: the list of cards, the buffer contents and the current target live in useState. The menu is an HTML popover at the cursor through the x/y variables, called by a right click and by the button on the card. The "paste" entry is marked aria-disabled on an empty buffer and stays visible: a hidden entry does not explain why the action is unavailable. Pasting puts the copy right after the card the menu was called on — a buffer without a destination is meaningless. The buffer contents are shown in a line with role=status under the list. The theme comes from the surrounding color-scheme through light-dark(), and the card has no background of its own by default.
Tags
- contextmenu
- clipboard
- state
- board
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…