vue2-dropzone-vue3
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

vue-dropzone

Drop in replacement of vue2-dropzone that supports vue3

A Vue component for file uploads, powered by Dropzone.js. Check out the demo.


Development

# install your dependencies
npm install

# install vue-dropzone
npm install vue2-dropzone-vue3

(or with yarn)

yarn add vue2-dropzone-vue3

Usage

<template>
  <vue-dropzone
    ref="myVueDropzone" 
    id="dropzone" 
    :options="dropzoneOptions"
  />
</template>  
<script>
import vueDropzone from 'vue2-dropzone-vue3'

export default {
  components: {
    vueDropzone,
  },
  data () {
    return {
      dropzoneOptions: {
        url: 'https://httpbin.org/post',
        thumbnailWidth: 150,
        maxFilesize: 0.5,
        headers: { "My-Awesome-Header": "header value" }
      }
    }
  }
  ...
}

Donate NPM vue3 NPM Downloads Reputation

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.01,765latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.01,765
1.0.11
1.0.00

Package Sidebar

Install

npm i vue2-dropzone-vue3

Weekly Downloads

1,766

Version

1.1.0

License

MIT

Unpacked Size

39.4 kB

Total Files

10

Last publish

Collaborators

  • timwickstrom