apeman-react-upload
apeman react package for file upload components.
Installation
$ npm install apeman-react-upload --save
Demo
Live demo is hosted on GitHub Pages.
Usage
'use strict' import React from 'react'import ApUpload ApUploadStyle from 'apeman-react-upload' const ExampleComponent = React
Components
ApUploadStyle
Props
Name | Type | Default | Description |
---|---|---|---|
style | object | {} | |
highlightColor | string | ApStyle.DEFAULT_HIGHLIGHT_COLOR | |
backgroundColor | string | ApStyle.DEFAULT_BACKGROUND_COLOR |
ApUpload
Props
Name | Type | Default | Description |
---|---|---|---|
name | string | null | |
id | string | `ap-upload-${uuid.v4()}` | |
multiple | bool | false | |
onChange | func | null | |
onLoad | func | null | |
onError | func | null | |
width | number | 180 | |
height | number | 180 | |
text | string | 'Upload file' | |
accept | string | null | |
icon | string | 'fa fa-cloud-upload' | |
closeIcon | string | 'fa fa-close' | |
spinner | string | ||
value | string | array | |
spinnerIcon | ApSpinner.DEFAULT_THEME |
License
This software is released under the MIT License.