Kodza

Search Autocomplete

A search field over a real datalist: suggestions unroll under it, grouped, with the letters you typed underlined. "/" jumps in, arrows and Enter drive.

Forms No dependencies searchautocompletecomboboxform Added Jan 2026
/anim/search-input/ Fullscreen

With your AI

Just ask.

Say it to your AI. It gets the exact code below, not its best guess, and knows where it goes.

Add Kodza Search Autocomplete to my docs header.

Not plugged in yet?
claude mcp add -t http kodza https://kodza.dev/api/mcp
Also in Codex, Cursor and VS Code.
kodza-search-input.html
<div class="kodza-search">
  <label class="kodza-search__box">
    <svg class="kodza-search__icon" viewBox="0 0 16 16" aria-hidden="true"><circle cx="7" cy="7" r="4.5"/><path d="m10.5 10.5 3 3"/></svg>
    <input class="kodza-search__input" type="search" name="q" placeholder="Search components" list="kodza-search-list" autocomplete="off" aria-label="Search components">
    <kbd class="kodza-search__key">/</kbd>
  </label>
  <datalist class="kodza-search__options" id="kodza-search-list">
    <option value="Fill Button" label="Buttons"></option>
    <option value="Arrow Button" label="Buttons"></option>
    <option value="Scramble Link" label="Links"></option>
    <option value="Text Shimmer" label="Text"></option>
    <option value="Typewriter" label="Text"></option>
    <option value="Image Gallery" label="Images"></option>
    <option value="Pricing Plans" label="Cards"></option>
    <option value="Sticky Cards" label="Cards"></option>
    <option value="Command Palette" label="Navigation"></option>
    <option value="Scroll Header" label="Navigation"></option>
    <option value="Date Picker" label="Forms"></option>
    <option value="Multi Select" label="Forms"></option>
  </datalist>
</div>

Checked

Checked before you paste.

Robots poked at it before you did. Every component goes through the same checks, and again each time it changes.

What ranLast run
Accessibilityaxe-core 4.10.2: the WCAG 2.1 A and AA rules, plus best practices. 0 issues
KeyboardThe Tab key gets there, and the focus ring shows when it does. Passed
Reduced motionTurn on reduced motion and what moved just appears. Nothing loops. Passed
Light and darkThe same checks on both themes, contrast included. Passed
WordPressPasted into Twenty Twenty-Five, Twenty Twenty-One, Astra, Blocksy, GeneratePress, Hello Elementor, Kadence and OceanWP. Nothing to flag. 8 / 8 themes
Robots checked this. A human with VoiceOver hasn't yet.
KeyboardPress them in the preview
In the field, while suggestions are open
  • Next or previous suggestion, round and round↓/↑
  • Picks the highlighted suggestionEnter
  • Closes the suggestions and moves onTab
In the field
  • Opens the suggestions↓/↑
  • Filters the suggestions, letters in orderA–Z
  • Closes the suggestions and clears the text, in two pressesEsc
Anywhere outside a text field
  • Jumps to the search field/

More like this

More in Forms