apeman-react-photo
apeman react package for photo components.
Installation
$ npm install apeman-react-photo --save
Demo
Live demo is hosted on GitHub Pages.
Usage
'use strict' import React from 'react'import ApPhoto ApPhotoStyle ApPaperPhoto ApPaperPhotoStyle from 'apeman-react-photo' const ExampleComponent = React
Components
ApPaperPhotoStyle
Props
Name | Type | Default | Description |
---|---|---|---|
style | object | {} |
ApPaperPhoto
Props
Name | Type | Default | Description |
---|---|---|---|
imgSrc | string | null | |
imgWidth | number | 256 | |
imgHeight | number | 192 | |
imgScale | string | 'fill' | |
onTap | func | null |
ApPhotoStyle
Props
Name | Type | Default | Description |
---|---|---|---|
style | object | {} |
ApPhoto
Props
Name | Type | Default | Description |
---|---|---|---|
imgSrc | string | null | |
imgWidth | number | 256 | |
imgHeight | number | 128 | |
imgScale | string | 'fit' | |
onTap | func | null |
License
This software is released under the MIT License.