1.0.22 • Published 7 years ago

react-dropit v1.0.22

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

7 years ago

1.0.21

7 years ago

1.0.20

7 years ago

1.0.19

7 years ago

1.0.18

7 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago