react-magic-dropzone
v1.0.1
Published
Magically drag and drop files/links, built for React
Downloads
89,317
Maintainers
Readme
✨Magic Dropzone
Installation
yarn add react-magic-dropzone
or:
npm install --save react-magic-dropzone
Usage
Import MagicDropzone
in your React component:
import MagicDropzone from 'react-magic-dropzone'
onDrop = (accepted, rejected, links) => {
// Have fun
}
<MagicDropzone
accept="image/jpeg, image/png, .jpg, .jpeg, .png"
onDrop={this.onDrop}
>
Drop some files on me!
</MagicDropzone>
License
MIT