1.6.9 • Published 6 years ago
yagoubi-upload-images v1.6.9
yagoubi-upload-images
A flexible and beautiful input for images for ReactJS with multiselect and creatable support.
Demo yagoubi-upload-images demo .

Install and Usage
npm install --save yagoubi-upload-imagesSimple 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
| props | type | description |
|---|---|---|
| multiple | boolen | multi-images or not |
| placeholder | string | the placeholder that should diplay in images container |
| maxImages | number | if multiple you can add the maximum of number of images |
| maxImageSize | number | maximum file size |
| minImageSize | number | minimum file size |
| color | string | the color of the upload button exmple "#FFDC00" . the default is #0074D9 |
| onError | method | executing when an error happen take one param is error |
| onChange | method | executing when image uploaded take one param is the images |
License
MIT © yagoubi abdelkader
1.6.9
6 years ago
1.5.9
6 years ago
1.5.8
6 years ago
1.5.7
6 years ago
1.4.7
6 years ago
1.3.7
6 years ago
1.3.6
6 years ago
1.2.6
7 years ago
1.2.5
7 years ago
1.2.4
7 years ago
1.2.3
7 years ago
1.2.2
7 years ago
1.2.1
7 years ago
1.2.9
7 years ago
1.1.9
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