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.
| Prop | Type | Default | Description |
|---|---|---|---|
| accept | string | Allowed types, like the HTML `accept` attribute: "image/*" or ".pdf,.png". Leave out to allow all. | |
| multiple | boolean | true | Allow more than one file. |
| maxSizeMB | number | 10 | Largest file in megabytes. Bigger files are refused. |
| maxFiles | number | 8 | Most files that can be held at once. |
| onFilesChange | (files: File[]) => void | Called with the full list of held files whenever it changes. | |
| onReject | (message: string) => void | Called with a message when a file is refused. | |
| label | string | "Drop files here" | Main line shown inside the zone. |
| hint | string | Smaller line under the label. | |
| disabled | boolean | Stops all interaction and dims the zone. | |
| className | string | Extra classes added to the outer element. |
Build a Drag and Drop Kanban Board in React with Framer Motion