Atelier UI

Search components…

Search components…

File Dropzone

Drag-and-drop upload zone with type / size checks, file list and progress.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

FileDropzoneProps

Also accepts all props of Omit<React.ComponentProps<"div">, "onChange">

PropTypeDefaultDescription
onFilesChange(files: File[]) => void——
acceptstring""Same syntax as the input's accept attribute, e.g. "image/*,.pdf"
multiplebooleantrue—
maxSizeMbnumber10Largest accepted file, in MB
maxFilesnumber5—
titlestring"Drop files here or click to browse"—
hintstring——
simulateUploadbooleantrueShow a progress bar per file while the upload is simulated

Install

$ npx shadcn@latest add https://chromotion.dev/r/file-dropzone.json

The CLI installs the base component; your customizations live in the code generated on the Customize tab.

More like this