ImageUploader
Image picker with previews and remove controls.
ImageUploader
Image picker with previews and remove controls.
Basic Usage
ImageUploader
Demo will load when visible.
API (Lite)
| Property | Type | Default | Description |
|---|---|---|---|
| modelValue | Current image list | ||
| multiple | Allow selecting multiple files at once | ||
| accept | Native file input accept attribute | ||
| disabled | Disable adding and removing images | ||
| max | Maximum image count |
Events
| Property | Type | Default | Description |
|---|---|---|---|
| update:modelValue | - | Image list update | |
| change | - | Image list change | |
| remove | - | Triggered after removing an image |
Interaction Contract
- The current component opens the native file picker from the add button; it does not provide a drag-and-drop upload target.
- Newly selected files create object URLs for preview and revoke them on remove or component unmount.
maxlimits newly added files; files beyond the remaining capacity are ignored.disableddisables the add button, file input, and remove buttons.