<DropZone>
<UploadIcon className="size-5 text-fg-muted" />
</DropZone>pnpm dlx 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>Use the controls below to experiment with different drop zone props and see the live preview and code update.
A drop zone is an area into which one or multiple objects can be dragged and dropped.
| Prop | Type | Default | |
|---|---|---|---|
| — | ||
| — | ||
| — | ||
Missing description.
| Prop | Type | Default | |
|---|---|---|---|
| — | ||
| — | ||
| — | ||
Last updated on 12/21/2025
Bringing singularity to the web.
Built with passion by @mehdibha.
<Dynamic(DropZone)>
<Dynamic(DropZoneLabel)>Drop files here</Dynamic(DropZoneLabel)>
</Dynamic(DropZone)>