Skip to content

Upload Progress Bar

A copy-paste file upload component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

File UploadHTMLCSSany framework
design-spec.fig62%

Copy into your project

HTML
<div class="nuda-upbar" role="group" aria-label="Upload progress">
  <div class="nuda-upbar__row">
    <span class="nuda-upbar__name">design-spec.fig</span>
    <span class="nuda-upbar__pct">62%</span>
  </div>
  <div class="nuda-upbar__track" role="progressbar"
       aria-valuenow="62" aria-valuemin="0" aria-valuemax="100">
    <div class="nuda-upbar__fill" style="width: 62%"></div>
  </div>
</div>
CSS
/* Upload Progress Bar
   Per-file progress with name + percent label.
   Customize: --bar-grad-from, --bar-grad-to */

.nuda-upbar {
  --bar-grad-from: #e4ff54;
  --bar-grad-to: #a8ff54;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.75rem 0.9rem;
  background: #0c0c10;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  min-width: 280px;
}

.nuda-upbar__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.nuda-upbar__name {
  font-size: 0.82rem;
  color: #fafafa;
  font-weight: 500;
}

.nuda-upbar__pct {
  font-size: 0.78rem;
  color: var(--bar-grad-from);
  font-variant-numeric: tabular-nums;
}

.nuda-upbar__track {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.nuda-upbar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--bar-grad-from), var(--bar-grad-to));
  border-radius: 999px;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(228, 255, 84, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .nuda-upbar__fill { transition: none; }
}

How to use Upload Progress Bar

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.

More file upload components

← Browse all NudaUI components