vibran

Searchable sidebar, keyboard shortcut

Portuguese name: Sidebar com busca e atalho

A search field at the top of the sidebar filters items as you type, ignores accents and case, highlights matched letters and hides groups left empty. The / or Ctrl+K keys focus the field and arrows walk through the results.

Preview of Searchable sidebar, keyboard shortcut running live
Copy the promptAdjust colors and speed

When to use it

For systems with more than a dozen menu items, where people already know the name of what they want: clinic, ERP, admin dashboards. Use data-termos on links for synonyms, like "imunização" on Vacinas, and data-fuzzy="sim" to accept typed abbreviations. If the menu is short, search only takes space; leave it out then.

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:

<aside data-efeito="sidebar-busca" data-atalho="k">
  <input type="search" data-busca aria-label="Buscar no menu">
  <kbd data-atalho-dica></kbd>
  <nav>
    <div data-grupo>
      <p data-secao>Clínica</p>
      <a href="#" data-termos="imunização"><svg>…</svg><span>Vacinas</span></a>
    </div>
  </nav>
  <p data-vazio>Nada encontrado para <b data-termo></b></p>
</aside>

More sidebar effects

All 22 sidebar effects →