Dropzone JS

Render any content into a Drag and Drop File Zone.

Add File
import { Dropzone } from 'uniform';
var dropzone = new Dropzone({
    el: document.getElementById('example-1')
})
dropzone.addEventListener('drop', console.log)

Options

Option Type Description
content HTML or Elements HTML or Element to render inside area optional
el Element Element to transform into dropzone optional
class, name, id, value String Accepts any html attribute that is then rendered on the modal element. optional

Events

Event Description Arguments
drop After file is dropped on zone file