Forms
File Upload Dropzone
Drag-and-drop file upload zone with file preview list, size validation, and multi-file support.
Quick Preview
๐
Drag & drop files here, or browse
Max 5 MB ยท image/*
Installation
# No extra dependencies
// Copy component fromsrc/components/forms/FileUploadDropzone.tsx
Usage
import FileUploadDropzone from '@/components/forms/FileUploadDropzone'<FileUploadDropzoneaccept="image/*"maxSizeMB={5}multipleonFiles={(files) => console.log(files)}/>
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
accept | string | - | Accepted MIME types or extensions |
multiple | boolean | false | Allow multiple files |
maxSizeMB | number | 10 | Max file size in MB |
onFiles | (files: File[]) => void | - | Called when files change |
className | string | - | Additional CSS classes |