Skip to content

Upload Progress Toast

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

Toasts & AlertsHTMLCSSany framework
brand-assets.zip67%

Copy into your project

HTML
<div class="nuda-ta2-upload" role="status" aria-live="polite">
  <div class="nuda-ta2-upload__row">
    <span class="nuda-ta2-upload__name">brand-assets.zip</span>
    <span class="nuda-ta2-upload__pct">67%</span>
  </div>
  <div class="nuda-ta2-upload__track">
    <div class="nuda-ta2-upload__fill"></div>
  </div>
</div>
CSS
.nuda-ta2-upload {
  --c: #e4ff54;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  background: #161616;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: .75rem .9rem;
  min-width: 260px;
  max-width: 300px;
}

.nuda-ta2-upload__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.nuda-ta2-upload__name {
  color: #fafafa;
  font-size: .8rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nuda-ta2-upload__pct {
  flex-shrink: 0;
  color: var(--c);
  font-size: .72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.nuda-ta2-upload__track {
  position: relative;
  height: 6px;
  border-radius: 99px;
  background: rgba(255,255,255,.1);
  overflow: hidden;
}

.nuda-ta2-upload__fill {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(0);
  border-radius: 99px;
  background: linear-gradient(90deg,#b9d63f,var(--c));
  animation: _nuda-ta2uploadfill 3s cubic-bezier(.2,.7,.3,1) forwards;
}

@keyframes _nuda-ta2uploadfill {
  to {
    transform: scaleX(.67);
  }
}

@media (prefers-reduced-motion:reduce) {
  .nuda-ta2-upload__fill {
    animation: none;
    transform: scaleX(.67);
  }
}

How to use Upload Progress Toast

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 toasts & alerts components

← Browse all NudaUI components