1.0.1 • Published 7 years ago

react-magic-dropzone v1.0.1

Weekly downloads
223
License
MIT
Repository
github
Last release
7 years ago

✨Magic Dropzone Tweet

Build Status codecov license styled with prettier npm-version npm-downloads

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>

Edit y200pqy4pz

License

MIT