Components/File Upload
File Upload
Drag-and-drop file input with click-to-browse fallback, MIME filtering, and size limits.
Click to upload or drag and drop
image/*
Installation
npx ajaxui add file-uploadDisabled
Click to upload or drag and drop
Props
| Prop | Type | Default |
|---|---|---|
| accept | string | — |
| multiple | boolean | false |
| maxSize | number (bytes) | — |
| onFilesSelected | (files: File[]) => void | — |
| disabled | boolean | false |