apeman-react-image
apeman react package for image component.
Last updated a year ago by okunishinishi .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install apeman-react-image 
SYNC missed versions from official npm registry.

apeman-react-image

Build Status Code Climate Code Coverage npm Version JS Standard

apeman react package for image component.

Installation

$ npm install apeman-react-image --save

Demo

Live demo is hosted on GitHub Pages.

Demo Image

Usage

'use strict'

import React, {PropTypes as types} from 'react'
import {ApImage, ApImageStyle} from 'apeman-react-image'

const ExampleComponent = React.createClass({
  render () {
    return (
      <div>
        <ApImageStyle backgroundColor='#333'
        />
        <ApImage src='http://example.com/images/sample.png'
                 alt='This is it!'
                 scale='fit'
        />
      </div>
    )
  }
})

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.

Links

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 3
Last Month 408
Dependencies (6)
Dev Dependencies (27)

Copyright 2014 - 2016 © taobao.org |