1.6.9 • Published 4 years ago

yagoubi-upload-images v1.6.9

Weekly downloads
13
License
MIT
Repository
github
Last release
4 years ago

NPM JavaScript Style Guide

yagoubi-upload-images

A flexible and beautiful input for images for ReactJS with multiselect and creatable support.

Demo yagoubi-upload-images demo .

npm.io

Install and Usage

npm install --save yagoubi-upload-images

Simple Example

import  React, { Component } from  'react'

  

import  UploadImages  from  'yagoubi-upload-images'

  

class  Example  extends  Component {

onChange = (images) =>{

console.log(images)

}

render () {

return (

<UploadImages  multiple  onChange={this.onChange}  />

)

}

}

props

All props are not require
propstypedescription
multipleboolenmulti-images or not
placeholderstringthe placeholder that should diplay in images container
maxImagesnumberif multiple you can add the maximum of number of images
maxImageSizenumbermaximum file size
minImageSizenumberminimum file size
colorstringthe color of the upload button exmple "#FFDC00" . the default is #0074D9
onErrormethodexecuting when an error happen take one param is error
onChangemethodexecuting when image uploaded take one param is the images

License

MIT © yagoubi abdelkader

1.6.9

4 years ago

1.5.9

4 years ago

1.5.8

4 years ago

1.5.7

4 years ago

1.4.7

4 years ago

1.3.7

4 years ago

1.3.6

4 years ago

1.2.6

5 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.9

5 years ago

1.1.9

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