Drop Zone

A drop zone is an area into which one or more objects can be dragged and dropped.

<DropZone>
  <UploadIcon className="size-5 text-fg-muted" />
</DropZone>

Installation

npx shadcn@latest add @dotui/drop-zone

Usage

Use 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>

Playground

Use the controls below to experiment with different drop zone props and see the live preview and code update.

Drop files here
<DropZone>
  <DropZoneLabel>Drop files here</DropZoneLabel>
</DropZone>

API Reference

DropZone

A drop zone is an area into which one or multiple objects can be dragged and dropped.

PropType
boolean
((types: DragTypes, allowedOperations: DropOperation[]) => DropOperation)
ReactNode | function

DropZoneLabel

Missing description.

PropType
union
string
string

Last updated on 1/13/2026

Built with passion by @mehdibha.