4.1.5 • Published 9 years ago

apeman-react-image v4.1.5

Weekly downloads
13
License
MIT
Repository
github
Last release
9 years ago

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

NameTypeDefaultDescription

ApImage

Props

NameTypeDefaultDescription
scaleenum'none'Image scaling policy
widthnumberstring300Image width
heightnumberstring150Image height
srcstringnullImage src string
altstring'NO IMAGE'Alt test
spinnerThemestringApSpinner.DEFAULT_THEMEThem of spinner
onLoadfuncnullHandler on image load
onErrorfuncnullHandler on image error.

License

This software is released under the MIT License.

Links

4.1.5

9 years ago

4.1.4

9 years ago

4.1.3

9 years ago

4.1.2

9 years ago

4.1.1

9 years ago

4.1.0

9 years ago

4.0.4

9 years ago

4.0.3

9 years ago

4.0.2

9 years ago

4.0.1

9 years ago

4.0.0

9 years ago

3.0.17

9 years ago

3.0.16

9 years ago

3.0.15

9 years ago

3.0.14

9 years ago

3.0.13

9 years ago

3.0.12

9 years ago

3.0.11

9 years ago

3.0.10

9 years ago

3.0.9

9 years ago

3.0.8

9 years ago

3.0.7

9 years ago

3.0.6

9 years ago

3.0.5

9 years ago

3.0.4

9 years ago

3.0.3

9 years ago

3.0.2

9 years ago

3.0.1

9 years ago

3.0.0

9 years ago

2.1.16

9 years ago

2.1.15

9 years ago

2.1.14

9 years ago

2.1.13

9 years ago

2.1.12

9 years ago

2.1.11

9 years ago

2.1.10

9 years ago

2.1.9

9 years ago

2.1.8

9 years ago

2.1.7

10 years ago

2.1.6

10 years ago

2.1.5

10 years ago

2.1.4

10 years ago

2.1.3

10 years ago

2.1.2

10 years ago

2.1.1

10 years ago

2.1.0

10 years ago

2.0.0

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago