1.0.22 • Published 5 years ago

react-dropit v1.0.22

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

React Drop It

Getting Started

  • Easy to upload your files with drag-drop
  • Default style, or you can style it

Demo

npm.io

Features next version

  • support auto-resize, reduce quality
  • Support thumbnail for video

Insallting

yarn add react-dropit

or

npm i --save react-dropit

Usage

import DropIt from 'react-dropit
// const DropIt from 'react-dropit'

const ImageUpload = (props) => {

  const ImgThumb = props.CustomThumbnail
  
  return (
    <DropIt
      onChange={props.onChange}
      value={props.value}
      type='image'
      errorSizeMsg="Max file size is 1MB"
      errorTypeMsg="Just image!!!"
      errorMaxFilesMsg="You just can upload 10 files"
      multiple={props.multiple}
      autoUpload
      uploadUrl="/upload"
      maxFiles={10}
      className="classname-for-react-dropit-container"
      dropzoneClassName="classname-for-drop-zone"
      thumbnailContainerClassName="classname-for-thumbnail-list-container"
      thumbnail={ImgThumb}
      thumbnailClassName="classname-for-thumbnail-item"
      placeholder="Drop or click here to upload images"/>
  )
}
1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago