Search

Search components and flows across the catalog

ThatDesignUIOriginalInteractive preview

File upload dropzone

A drop target with an animated marching border, per-file rows with type badges and live progress, pause and resume, and a clear size-limit error with a retry.

Category
Forms
Platform
Responsive

Interactive componentClick through it, resize it, or switch states. It’s real UI, not a screenshot.Empty state

Use this component

Free to use. It works on its own in any React and Tailwind project, so you can add it with one command, paste the code, or hand the prompt to your coding agent.

FreeReact 18+Tailwind v3.4 or v4No extra packages

1. Add it with the shadcn CLI

npx shadcn@latest add https://www.thatdesignui.com/r/file-dropzone.json

2. Use it

Every prop is optional
app/page.tsx
import FileDropzone from "@/components/file-dropzone";

export default function Page() {
  return <FileDropzone />;
}

Prefer to paste it yourself? Open the .

Under the hood

How it’s built

What’s inside

  1. A 40rem white card (24px radius) on #f5f5f7: a title and helper line, then a dashed drop area with an upload icon tile, 'Drag files here' and two inline links (browse, try sample files).
  2. While a file is dragged over, the dashed border becomes an indigo marching-ants border, the area tints indigo and the icon bobs.
  3. Each file gets a row: a colored type badge (PDF red, PNG blue, ZIP violet), name, a percent or size, a 6px progress bar, and pause/resume and remove buttons; finished rows show a green check.
  4. A file over the limit gets a red row with the reason and a 'Compress & retry' action instead of a progress bar.

How it behaves

  • Dropping or choosing files adds a row per file and its progress bar reaches 100% on its own.
  • Pause freezes a row's progress and Resume continues it; Remove deletes the row.
  • Each progress bar is a progressbar with aria-valuenow, and the list is a polite live region.
  • The marching border and bobbing icon stop under reduced motion.

More from ThatDesignUI

Image gallery lightbox

Image gallery lightbox

ThatDesignUIOriginalMedia component

Notification center

Notification center

ThatDesignUIOriginalNotifications component

Interactive chart card

Interactive chart card

ThatDesignUIOriginalDashboard component

Multi-select combobox

Multi-select combobox

ThatDesignUIOriginalForms component