1.0.5 • Published 2 years ago

toodle-dropzone v1.0.5

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

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;