1.0.4 • Published 2 months ago

dropimg v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 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

2 months ago

1.0.3

2 months ago

1.0.2

2 months ago

1.0.1

2 months ago

1.0.0

2 months ago