Dropzone

Drag files onto it, or click to browse. The zone lifts and glows while files are over it. Files show a size and an image preview, and too-big or wrong-type files are refused with a message.

Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.

Dropzone3D props

PropTypeDefaultDescription
acceptstringAllowed types, like the HTML `accept` attribute: "image/*" or ".pdf,.png". Leave out to allow all.
multiplebooleantrueAllow more than one file.
maxSizeMBnumber10Largest file in megabytes. Bigger files are refused.
maxFilesnumber8Most files that can be held at once.
onFilesChange(files: File[]) => voidCalled with the full list of held files whenever it changes.
onReject(message: string) => voidCalled with a message when a file is refused.
labelstring"Drop files here"Main line shown inside the zone.
hintstringSmaller line under the label.
disabledbooleanStops all interaction and dims the zone.
classNamestringExtra classes added to the outer element.

Read the guide

Build a Drag and Drop Kanban Board in React with Framer Motion

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks