apeman-react-photo

apeman react package for photo components.

Usage no npm install needed!

<script type="module">
  import apemanReactPhoto from 'https://cdn.skypack.dev/apeman-react-photo';
</script>

README

apeman-react-photo

Build Status Code Climate Code Coverage npm Version JS Standard

apeman react package for photo components.

Installation

$ npm install apeman-react-photo --save

Demo

Live demo is hosted on GitHub Pages.

Demo Image

Usage

'use strict'

import React from 'react'
import {
  ApPhoto,
  ApPhotoStyle,
  ApPaperPhoto,
  ApPaperPhotoStyle
} from 'apeman-react-photo'

const ExampleComponent = React.createClass({
  render () {
    return (
      <div>
        <ApPhotoStyle />
        <ApPaperPhotoStyle />
        <ApPaperPhoto imgSrc="http://example.com"/>
      </div>
    )
  }
})

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.

Links