Multi-file Count Pill
A copy-paste file upload component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
File UploadHTMLCSSany framework
3files selected
Copy into your project
HTML
<span class="nuda-fcount" role="status">
<svg class="nuda-fcount__icon" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="1.8" aria-hidden="true">
<path d="M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"
stroke-linejoin="round" />
<path d="M14 3v6h6" stroke-linejoin="round" />
</svg>
<span class="nuda-fcount__num">3</span>
files selected
</span>CSS
/* Multi-file Count Pill
Inline summary of how many files are queued. */
.nuda-fcount {
--accent: #e4ff54;
display: inline-flex;
align-items: center;
gap: 0.45rem;
padding: 0.4rem 0.7rem;
background: rgba(228, 255, 84, 0.08);
border: 1px solid rgba(228, 255, 84, 0.3);
border-radius: 999px;
color: #fafafa;
font-size: 0.8rem;
font-weight: 500;
}
.nuda-fcount__icon {
width: 14px;
height: 14px;
color: var(--accent);
}
.nuda-fcount__num {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 18px;
height: 18px;
padding: 0 5px;
background: var(--accent);
color: #09090b;
border-radius: 999px;
font-size: 0.72rem;
font-weight: 700;
font-variant-numeric: tabular-nums;
}How to use Multi-file Count Pill
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.