Drop Zone
The Drop Zone lets users drag and drop files or select them manually, delivering a smooth, intuitive upload flow with clear feedback and progress states.
Basic
DropZone provides support for mouse, keyboard, and touch interactions. Simply connect the onDrop prop to handle all the drop actions. Additionally, you’ll receive real-time updates through onDropEnter, onDropMove, and onDropExit events as users interact with the drop zone.
Installation
Install the component via the CLI in one command.
npx shadcn@latest add @intentui/drop-zone
Manual installation
Use this approach if you prefer to install and wire up the component yourself instead of using the CLI.
npm install react-aria-components
Anatomy
import { DropZone } from "@/components/ui/drop-zone"
import { Label } from "@/components/ui/field"<DropZone>
<Label>Toss your stuff here</Label>
</DropZone>Using FileTrigger
The FileTrigger component can be used to select files from the file system, making it an excellent tool for managing files that have been dragged and dropped into the browser.
Design Intent UI
Build modern web apps faster with 1000+ resources across components, blocks, patterns, templates, and starter kits.