react-magic-dropzone

1.0.1 • Public • Published

✨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

Package Sidebar

Install

npm i react-magic-dropzone

Weekly Downloads

15,345

Version

1.0.1

License

MIT

Last publish

Collaborators

  • bourdakos1