vue3-img-uploader
vue3-img-uploader
Image loader for Vue 3, displays image previews and the ability to switch multiple modes.
Install
npm install vue3-img-uploader
or:
pnpm install vue3-img-uploader
Screenshots

Using
import { createApp } from 'vue'
import App from './App.vue'
import Vue3ImgUploader from 'vue3-img-uploader'
import 'vue3-img-uploader/style.css'
const app = createApp(App)
app.use(Vue3ImgUploader)
app.mount('#app')
Add component to page
<script lang="ts" setup>
import {ref} from 'vue';
const file = ref([]);
</script>
<template>
<div>
<Vue3ImgUploader
v-model="file"
:isDraggingAble="true"
:isMultiple="true"
:showSize="true"
:customClass="'custom-class'"
/>
</div>
</template>
Properties
| Props | Type | Default |
|---|---|---|
| isDraggingAble | Boolean |
true |
| isMultiple | Boolean |
false |
| showSize | Boolean |
true |
| customClass | String |
' ' |
Global Options
you can use global options to set default values for all components
const app = createApp(App)
app.use(Vue3ImgUploader, {ShowSize: true, isDraggable: true})
Author
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.0.8 | ^3.2.47 | MIT | |
| 0.0.7 | ^3.2.47 | MIT | |
| 0.0.6 | ^3.2.47 | MIT | |
| 0.0.5 | ^3.2.47 | MIT | |
| 0.0.4 | ^3.2.47 | MIT | |
| 0.0.3 | ^3.2.47 | MIT | |
| 0.0.2 | ^3.2.47 | MIT | |
| 0.0.1 | ^3.2.47 | MIT |