dropzone-vue3
Version:
Vue3 port of vue2-dropzone A wrapper around Dropzone.js for Vue 3
58 lines (45 loc) • 1.23 kB
Markdown
# vue-dropzone
**Drop in replacement of vue2-dropzone that supports vue3**
A Vue component for file uploads, powered by [Dropzone.js](http://www.dropzonejs.com/). [Check out the demo](https://rowanwins.github.io/vue-dropzone/docs/dist/index.html).

## Development
``` bash
# install your dependencies
npm install
# install vue-dropzone
npm install dropzone-vue3
(or with yarn)
yarn add dropzone-vue3
```
## Usage
```javascript
<template>
<vue-dropzone
ref="myVueDropzone"
id="dropzone"
:options="dropzoneOptions"
/>
</template>
<script>
import vueDropzone from '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" }
}
}
}
...
}
```
[](https://www.npmjs.com/package/dropzone-vue3)
[](https://vuejs.org/)
[](https://www.npmjs.com/package/dropzone-vue3)