Back to Components
Inputs

File Upload

Drag and drop file upload zone with progress indicators.

Drag files here or click to upload

Supported formats based on your selection

Dependencies

  • clsx
  • tailwind-merge
  • lucide-react

Files

  • components/ui/file-upload.tsx

Installation

Using shadcn CLI

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

Manual installation

Copy the component file to your project and install dependencies:

npm install clsx tailwind-merge lucide-react