react-upload-images

1.0.2 • Public • Published

React Upload Image

React Component upload image.

Getting Started

$ npm i react-upload-images --save
$ yarn add react-upload-images

Stylesheet

css

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!

Package Sidebar

Install

npm i react-upload-images

Weekly Downloads

10

Version

1.0.2

License

MIT

Unpacked Size

17.6 kB

Total Files

6

Last publish

Collaborators

  • mosliger