vibran

Glass context menu with command search

Portuguese name: Menu de contexto de vidro com busca de comandos

A menu that opens on right-click (and on a ⋯ button for touch) at the cursor, without leaving the screen, scaling from the clicked point. Dark glass with a blue border that glows brighter near the mouse, a field that filters commands as you type, titled groups and a light background on the focused item. Arrows, Enter and Esc work.

Preview of Glass context menu with command search running live
Copy the promptAdjust colors and speed

When to use it

For editors, file managers and dashboards where right-click needs to give quick access to commands. The search inside the menu helps when the list is long. The ⋯ button covers touch users. Listen to the menu-contexto-vidro:escolha event to run the action.

How to add it to your site

  1. Copy the prompt in the gallery. It comes with the effect's name and the full code. The prompt text is written in Portuguese, and AI builders handle that fine.
  2. Paste it into your AI: Lovable, Claude, Cursor, Bolt or v0.
  3. Done: the AI adds the effect to your project, just like you saw it here.

Use it in HTML

The effect is plain JavaScript, no library. Just put the data-efeito attribute on the element:

<div data-efeito="menu-contexto-vidro" data-placeholder="digite um comando ou busque">
  <button type="button" data-menu-botao aria-label="Abrir menu de ações">⋯</button>
  <div class="ef-menu" hidden>
    <div data-grupo="Sugestões">
      <button type="button"><svg>…</svg><span>Nova nota</span><kbd>N</kbd></button>
    </div>
    <div data-grupo="Configurações">
      <button type="button"><svg>…</svg><span>Atalhos de teclado</span></button>
    </div>
  </div>
</div>

More navigation effects

All 20 navigation effects →