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.

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
- 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.
- Paste it into your AI: Lovable, Claude, Cursor, Bolt or v0.
- 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
- Cookie consent bannerpreferences card
- Toast notificationAviso no canto da tela
- Stacked toast notificationssonner-style
- Hold to delete confirmation dialogConfirmar apagando segurando
- Depth modalglass dialog with background scale
- Bottom sheetdraggable drawer
- Image lightbox with zoom from thumbnailGaleria que amplia a partir da miniatura
- Spring drawerphysics side sheet