Let users upload files from their device.
Click to upload or drag and drop
1234567891011Click to upload or drag and drop
Accepted: image/*
1234567891011121314| Prop | Type | Default | Description |
|---|---|---|---|
onUpload | (files: File[]) => void | — | Callback function called when files are selected |
accept | string | — | File types to accept (e.g., "image/*", ".pdf") |
multiple | boolean | false | Allow multiple file selection |
maxSize | number | — | Maximum file size in bytes |
showPreview | boolean | false | Show file preview after selection |
disabled | boolean | false | Disable file upload |
className | string | — | Additional CSS classes |