Drag-and-drop image upload with preview and file type validation.
Drag and drop an image or click to browse.
<script>
import { ImageUpload } from "jatui"
</script>
<ImageUpload />| Prop | Type | Default | Description |
|---|---|---|---|
imageUrl | string | "" | Current image URL for preview |
label | string | "Upload Image" | Upload area label |
maxSize | number | 10485760 | Max file size in bytes |
disabled | boolean | false | Disable upload |
onUpload | (url: string) => void | - | Upload callback |