UI
FileInput
Drag-and-drop file upload area with image preview, size validation, and file list.
Quick Preview
Drag & drop files here
or click to browse โ max 5 MB per file
Installation
# No extra dependencies
// Copy component fromsrc/components/ui/FileInput.tsx
Usage
import FileInput from '@/components/ui/FileInput'<FileInputaccept="image/*"multiplemaxSizeMB={10}onFiles={(files) => handleUpload(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 file MIME types |
multiple | boolean | true | Allow multiple files |
maxSizeMB | number | 10 | Maximum file size in MB |