Context Menu

File Card Menu

A menu on a file card with a destructive entry at the bottom: its own layer instead of an HTML popover, clamped inside the demo area so it cannot escape the catalogue card.

What you can change

  • the file name through fileName and the caption through meta
  • the action list through actions and the destructive caption through deleteLabel
  • the sectionLabel, hint, menuLabel and doneText captions — Russian by default

A link for your AI agent: preview, code and instructions.

Preview

1440pxHost theme

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.
AI
1Pick it here

put this on the home page as the hero:

https://vibeui.ru/c/contextmenu-009?lang=en&theme=dark

2Paste into the chat
3Get it in your project

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

The component is self-contained: one file, no dependencies, its own palette in the local --vibeui-contextmenu-009-* variables. Client component: "use client" for the sake of the cursor coordinates and its own open state. The menu is not an HTML popover but a plain absolutely positioned layer inside the demo area, which has position:relative and overflow:hidden: the click coordinates are converted into that area's frame of reference and clamped by its bounds using the known menu size, so it physically cannot leave the catalogue card. The component drives opening and closing itself through useEffect: an outside click and Escape close the menu, and focus returns to the button or the card that opened it. The theme comes from the surrounding color-scheme through light-dark(), and the card has no background of its own by default.

Tags

  • contextmenu
  • files
  • danger
  • a11y
Component source

The same file your agent installs. Here in case you would rather copy it by hand.

Loading…