Context Menu

Open With

A file context menu with an "Open with" submenu: the list of applications is tucked into a second level reached by hover and the right arrow.

What you can change

  • the file name through fileName
  • the submenu heading through submenuLabel and the application list through apps
  • the sectionLabel, actionLabel, menuLabel, openLabel, propertiesLabel 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-003?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

One file, zero dependencies, the --vibeui-contextmenu-003-* palette. Client component: useState holds the submenu expansion and the cursor coordinates. The first level is an HTML popover at the cursor through the x/y variables, the second a plain absolute layer inside it: a nested popover=auto would close its parent. The parent item is marked with aria-haspopup=menu and aria-expanded, the submenu is a role=menu with an aria-label. The right arrow opens the submenu and moves focus into it, the left one closes it and returns focus to the parent. The "Actions" button duplicates the right click, otherwise the menu is unreachable without a mouse. The theme comes from the surrounding color-scheme through light-dark(), and the card has no background of its own by default.

Tags

  • contextmenu
  • submenu
  • files
  • keyboard
Component source

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

Loading…