vibran

Command palette

Also called: cmd+k search

A search box at the top of the screen, opened by a button or Ctrl/Cmd + K. It filters as you type, ignores accents, highlights the match and moves with the arrow keys while a highlight glides from item to item. Enter picks, Esc closes.

Preview of Command palette running live
Copy the promptAdjust colors and speed

When to use it

For dashboards and apps with many screens and actions: people type what they want instead of hunting through menus. Pair it with a visible button, since not everyone knows the shortcut. Write labels the way people would say them and use data-palavras for synonyms ("invoice" can also find "nfe").

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:

<button data-efeito="paleta-comandos" data-abrir="#paleta">Buscar <kbd>Ctrl K</kbd></button>
<div id="paleta" hidden aria-label="Paleta de comandos">
  <input data-busca placeholder="Buscar...">
  <div data-lista>
    <div data-grupo>Ir para</div>
    <button data-item><span data-rotulo>Pedidos</span></button>
  </div>
</div>

More modals effects

All 15 modals effects →