image-dropzone
TypeScript icon, indicating that this package has built-in type declarations

1.0.32 • Public • Published

image-dropzone-typescript-package

NPM version Build npm-typescript License

It is simple Image drag and drop.

Installation:

npm install image-dropzone --save-dev

or

yarn add -D image-dropzone

Usage :

Add ImageDropZone to your component:

import React from 'react'
import ReactDOM from 'react-dom/client'
import { ImageDropZone } from 'image-dropzone'

const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)
root.render(
    <React.StrictMode>
        <ImageDropZone
            ref={yourDropzoneRef}
            from={"businessLogo"}
            sendUploadImage={handleUploadImage} // upload function
            handleResetImage={handleResetImage} // reset image function
            handleChangeImage={handleChangeImage} // change image function
            />
    </React.StrictMode>,
)

Package Sidebar

Install

npm i image-dropzone

Weekly Downloads

2

Version

1.0.32

License

ISC

Unpacked Size

37.3 kB

Total Files

49

Last publish

Collaborators

  • tushar_ensuesoft