vue3-img-uploader

Vue3 Img Uploader
243
Install
npm install vue3-img-uploader
Latest Version:0.0.8
Vue:3
License:MIT
Last Updated:Jun 6, 2023
Links: GitHub  ·  npm
Maintainer: hamza202

MIT License

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

App Screenshot

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

vue

The progressive JavaScript framework for building modern web UI.

588,019,132 54,801
vue
@vueuse/shared
372,738,348 22,398
@vueuse/core

Collection of essential Vue Composition Utilities

367,188,523 22,398
@vitejs/plugin-vue

The official plugin for Vue SFC support in Vite.

333,357,380 686
eslint-plugin-vue

Official ESLint plugin for Vue.js

266,364,830 4,591

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