Socket
Socket
Sign inDemoInstall

react-magic-dropzone

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-magic-dropzone

Magically drag and drop files/links, built for React


Version published
Weekly downloads
33K
increased by111.76%
Maintainers
1
Install size
418 kB
Created
Weekly downloads
 

Readme

Source

✨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

FAQs

Last updated on 08 Nov 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc