npm.io
1.0.1 • Published 8 years ago

react-magic-dropzone

Licence
MIT
Version
1.0.1
Deps
0
Vulns
0
Weekly
0
Stars
11

Magic Dropzone Tweet

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

demo.gif
Try out the demo

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

Keywords