React Upload Image
React Component upload image.
Getting Started
$ npm i react-upload-images --save
$ yarn add react-upload-images
Stylesheet
Examples
import UploadImage from 'react-upload-images';
...
<UploadImage uploadLink="https://www.demo.com" />
API
Property | Type | Default | Description |
---|---|---|---|
name |
string | assets |
Specify name for element |
multiple |
boolean | false |
Use multiple file |
className |
string | group-upload |
className for the outer element |
accept |
string | image/* |
Specify accept for element |
defaultImage |
string | undefined` | Default render image |
uploadLink |
string | undefined | Url post files |
onChange |
function | undefined | onChange handler: (files) {} |
customElements |
function | undefined | Customize UI customElements handler: (input, files, options) {} |
Thank you for your suggestions!