Voice Search Mic
A copy-paste search & autocomplete component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Search & AutocompleteHTMLCSSany framework
Copy into your project
HTML
<button class="nuda-voice is-listening" aria-label="Voice search">
<span class="nuda-voice__ring"></span>
<span class="nuda-voice__ring"></span>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="9" y="2" width="6" height="12" rx="3" />
<path d="M19 10a7 7 0 01-14 0" />
<path d="M12 19v3" />
</svg>
</button>CSS
.nuda-voice__ring {
position: absolute;
inset: 0;
border-radius: 50%;
border: 2px solid #e4ff54;
opacity: 0;
pointer-events: none;
}
.nuda-voice.is-listening .nuda-voice__ring {
animation: nuda-voice-ring 2s ease-out infinite;
}
.nuda-voice.is-listening .nuda-voice__ring:nth-child(2) {
animation-delay: 1s;
}
@keyframes nuda-voice-ring {
0% { transform: scale(1); opacity: 0.7; }
100% { transform: scale(2); opacity: 0; }
}How to use Voice Search Mic
Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.
Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.