Network Pipe Manufacturer

    dropy

    1.3.3 • Public • Published

    Drag and Drop Files

    This is a simple library for dragging and dropping files in your project using drag and drop HTML5 API.

    Dependency Version
    react at least 16.0.0
    react-dom at least 16.0.0
    prop-types at least 15.6.0

    Basic usage

    Installation

     npm install dropy
    

    Example

    import React from "react";
    import Dropy from "dropy";
    
    function App() {
      const droppedFiles = (file) => {
        console.log(file);
      };
    
      return <Dropy getFiles={droppedFiles} />;
    }
    
    export default App;

    Install

    npm i dropy

    DownloadsWeekly Downloads

    3

    Version

    1.3.3

    License

    MIT

    Unpacked Size

    10.1 kB

    Total Files

    3

    Last publish

    Collaborators

    • exploreraadi