react-magic-dropzone

Magically drag and drop files/links, built for React

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
react-magic-dropzone
1211.0.15 years ago5 years agoMinified + gzip package size for react-magic-dropzone in KB

Readme

✨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:
```javascript static import MagicDropzone from 'react-magic-dropzone'
```jsx
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