Trending Tag
A copy-paste badges & tags component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Badges & TagsHTMLCSSany framework
Trending
Copy into your project
HTML
<span class="nuda-trtag">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<path d="M23 6l-9.5 9.5-5-5L1 18" />
<path d="M17 6h6v6" />
</svg>
Trending
</span>CSS
.nuda-trtag {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 4px 10px;
background: rgba(255,109,212,.1);
border: 1px solid rgba(255,109,212,.3);
color: #ff6dd4;
border-radius: 99px;
font-size: 11px;
font-weight: 600;
}
.nuda-trtag svg {
width: 11px;
height: 11px;
animation: _trBounce 1.6s ease-in-out infinite;
}
@keyframes _trBounce {
0%,100% {
transform: translate(0);
}
50% {
transform: translate(2px,-1px);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-trtag svg {
animation: none;
}
}
How to use Trending Tag
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.