toodle-dropzone

1.0.5 • Public • Published

Toodle Dropzone

Table of Contents

Installation

To install, you can use npm or yarn:

$ npm install toodle-dropzone
$ yarn add toodle-dropzone

Example

Here is a simple example of toodle-dropzone

import DropZone from "toodle-dropzone";

const App = () => {
  const handleFileOnChange = (file) => {
    console.log(file);
    console.log(file.name);
  }
  return (
    <div className="App">
      <DropZone
        handleFileOnChange={handleFileOnChange}
        className="add-your-custom-css"
        accept="image/*" // Add any file type you need
      >
        Drag or Upload
      </DropZone >
    </div>
  );
}

export default App;

/toodle-dropzone/

    Package Sidebar

    Install

    npm i toodle-dropzone

    Weekly Downloads

    0

    Version

    1.0.5

    License

    none

    Unpacked Size

    7.36 kB

    Total Files

    9

    Last publish

    Collaborators

    • tanvirstreame