apeman-react-image
apeman react package for image component.
Installation
$ npm install apeman-react-image --save
Demo
Live demo is hosted on GitHub Pages.
Usage
'use strict' import React PropTypes as types from 'react'import ApImage ApImageStyle from 'apeman-react-image' const ExampleComponent = React
Components
ApImageStyle
Props
Name | Type | Default | Description |
---|
ApImage
Props
Name | Type | Default | Description |
---|---|---|---|
scale | enum | 'none' | |
width | number | string | 300 |
height | number | string | 150 |
src | string | null | |
alt | string | 'NO IMAGE' | |
spinnerTheme | string | ApSpinner.DEFAULT_THEME | |
onLoad | func | null | |
onError | func | null |
License
This software is released under the MIT License.