File Upload

A drag-and-drop zone with visual feedback for uploading files.

Upload filesSelect and upload the files of your choice

Choose a file or drag & drop it here

.jpg,.png,.pdf • up to 5MB

Installation

bash
npm install framer-motion lucide-react

Usage

tsx
import FileUpload from '@/components/ui/file-upload';

<FileUpload
  accept=".jpg,.png,.pdf"
  maxSize={5}
  onUpload={() => {}}
/>