# dropzone-nuxt

> A Dropzone.js module for Nuxt.js

Latest version **0.1.3** (published 2020-05-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install dropzone-nuxt
pnpm add dropzone-nuxt
yarn add dropzone-nuxt
bun add dropzone-nuxt
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2020-05-12 |
| First published | 2019-06-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Rasmus Schlünsen |
| Maintainers | schlunsen |
| Keywords | vue, dropzone, nuxt, nuxt.js |

## Links

- npm: https://www.npmjs.com/package/dropzone-nuxt
- Repository: https://github.com/schlunsen/dropzone-nuxt
- Homepage: https://github.com/schlunsen/dropzone-nuxt#readme
- Issues: https://github.com/schlunsen/dropzone-nuxt/issues
- npm.io page: https://npm.io/package/dropzone-nuxt

## Dependencies (2)

- [consola](https://npm.io/package/consola.md) ^2.3.2
- [vue2-dropzone](https://npm.io/package/vue2-dropzone.md) ^3.6.0

## Recent versions

- 0.1.3 (latest) — 2020-05-12
- 0.1.2 — 2020-05-11
- 0.1.1 — 2019-06-04
- 0.1.0 — 2019-06-04

## README

# dropzone-nuxt
[![npm (scoped with tag)](https://img.shields.io/npm/v/dropzone-nuxt/latest.svg?style=flat-square)](https://npmjs.com/package/dropzone-nuxt)
[![npm](https://img.shields.io/npm/dt/dropzone-nuxt.svg?style=flat-square)](https://npmjs.com/package/dropzone-nuxt)
[![Dependencies](https://david-dm.org/schlunsen/dropzone-nuxt/status.svg?style=flat-square)](https://david-dm.org/schlunsen/dropzone-nuxt)

A Dropzone.js module for Nuxt.js.

## Installation

```bash
$ npm i dropzone-nuxt --save
```

## Setup
- Add `dropzone-nuxt` dependency using yarn or npm to your project
- Add `dropzone-nuxt` to `modules` section of `nuxt.config.js`

```js
{
  modules: [
    // Simple usage
    'dropzone-nuxt',

    // With options
    ['dropzone-nuxt', { /* module options */ }],
 ]
}
```

## Usage
```vue
<template>
    <dropzone 
    @vdropzone-file-added="onFileAdded"
    @vdropzone-error="onError"
    @vdropzone-success="onSuccess"
    @vdropzone-complete="onComplete"
    ref="myDropzone" id="dropzone" :options="dropzoneOptions" />
</template>

<script>

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

        },
        onError(e) {

        },
        onSuccess(e) {

        },
        onComplete(e) {

        }


    }
}

</script>


```

---
_Source: https://npm.io/package/dropzone-nuxt · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
