<DropZone><DropZoneLabel>Drop files here</DropZoneLabel></DropZone>npx shadcn@latest add @dotui/drop-zoneUse drop zones to allow users to drag and drop files or content into a designated area.
import { DropZone, DropZoneLabel } from "@/components/ui/drop-zone";<DropZone>
<DropZoneLabel>Drop files here</DropZoneLabel>
</DropZone>A drop zone is an area into which one or multiple objects can be dragged and dropped.
| Prop | Type | Default | |
|---|---|---|---|
ReactNode | function | — | ||
((types: DragTypes, allowedOperations: DropOperation[]) => DropOperation) | — | ||
boolean | — | ||
DOMRenderFunction<"div", DropZoneRenderProps> | — | ||
Missing description.
| Prop | Type | Default | |
|---|---|---|---|
union | — | ||
string | — | ||
DOMRenderFunction<any, any> | — | ||
Last updated on 6/4/2026