History Pills
A copy-paste search & autocomplete component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Search & AutocompleteHTMLCSSany framework
⌕ css animation⌕ spinner⌕ magnetic⌕ hero⌕ modal
Copy into your project
HTML
<div class="nuda-histpills">
<button class="nuda-histpills__pill">⌕ css animation</button>
<button class="nuda-histpills__pill">⌕ spinner</button>
<button class="nuda-histpills__pill">⌕ magnetic</button>
<button class="nuda-histpills__pill">⌕ hero</button>
<button class="nuda-histpills__pill">⌕ modal</button>
</div>CSS
.nuda-histpills {
display: flex;
flex-wrap: wrap;
gap: 6px;
width: 100%;
max-width: 260px;
}
.nuda-histpills__pill {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 5px 11px;
background: rgba(255,255,255,.04);
border: 1px solid rgba(255,255,255,.08);
border-radius: 99px;
color: #a0a0a8;
font-size: 11px;
cursor: pointer;
animation: _histPop .45s cubic-bezier(.16,1,.3,1) both;
transition: background .25s,border-color .25s,color .2s,transform .2s;
}
.nuda-histpills__pill:hover {
background: rgba(228,255,84,.08);
border-color: #e4ff54;
color: #e4ff54;
transform: translateY(-2px);
}
@keyframes _histPop {
from {
opacity: 0;
transform: scale(.85);
}
to {
opacity: 1;
transform: scale(1);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-histpills__pill {
animation: none;
}
}
How to use History Pills
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.