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!

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    6
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    6
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i react-upload-images

Weekly Downloads

6

Version

1.0.2

License

MIT

Unpacked Size

17.6 kB

Total Files

6

Last publish

Collaborators

  • mosliger