1.0.4 • Published 5 months ago

dropimg v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

dropimg (Sorry Please don't Install it's now in a test mode)

A package for easy image dropping functionality.

Installation

Install the dropimg package using npm:

npm install dropimg

import { ImgDrop } from 'dropimg';

import React, { useState } from 'react';
import { ImgDrop } from 'dropimg';

const Component = () => {
  const [imageFile, setImageFile] = useState(null);

  const handleImageSelect = (file) => {
    setImageFile(file);
  };
  
  return (
    <ImgDrop onImageSelect={handleImageSelect}/>
  );
}

export default Component;
1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago