Back to Components
Components

File Dropzone

Drag and drop upload area with preview, progress, and file type validation.

Drag files here or click to upload

Accepted types: image/*,.pdf

Dependencies

  • clsx
  • tailwind-merge

Files

  • components/ui/file-dropzone.tsx

Installation

Using shadcn CLI

npx shadcn add file-dropzone --url https://ui.hampton.io

Manual installation

Copy the component file to your project and install dependencies:

npm install clsx tailwind-merge