Forms
Upload
Premium file upload area with drag and drop support and animated feedback.
Integrated Upload
A premium file upload area with drag and drop support and animated feedback. Automatically detects and shows file types with minimal iconography.
Click or drag file to uploadDrag and drop your assets here
Real-world: Asset Manager
A comprehensive example demonstrating multiple file selection, size validation (5MB limit), type filtering (Images/PDFs), and live upload progress synchronization.
Cloud Asset ManagerSupports JPG, PNG, and PDF (Max 5MB)
Properties
| Prop | Type | Default | Description |
|---|---|---|---|
accept | string | — | Comma-separated list of allowed file extensions (e.g. image/*, .pdf) |
multiple | boolean | false | If true, permits multiple selections or files |
maxSize | number // in bytes | — | Maximum allowed individual file size in bytes |
onUpload | (files: File[]) => void | — | Callback triggered when files are selected or dropped |
label | string | 'Click or drag file to upload' | Primary text label description |
description | string | 'Support for single or bulk upload.' | Supporting description or helper guidance text |
icon | React.ReactNode | — | Custom icon prefix element |
isLoading | boolean | false | Enables full loading layout with progress bar |
loadingProgress | number | 0 | Percentage progress value (0 to 100) shown on the bar |