# File upload
We created a small custom component that let's you upload & preview images. It is very handy for avatar uploads & profile picture uploads.
import {ImageUpload} from 'src/components'
Global usage
Vue.component(ImageUpload.name, ImageUpload)
For local usage
export default {
components: {
ImageUpload
}
}
# Regular image

Select Image
Show Code

Add photo
Show Code
# With predefined image

Add photo
Show Code
# Image upload Props
# Image upload Slots
Name | Description | Params |
---|---|---|
change | When selected file changes | Uploaded file |
← Charts Notifications →