3.0.6 • Published 9 years ago

apeman-react-album v3.0.6

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

apeman-react-album

Build Status Code Climate Code Coverage npm Version JS Standard

apeman react package for album components.

Installation

$ npm install apeman-react-album --save

Demo

Live demo is hosted on GitHub Pages.

Usage

'use strict'

import React from 'react'
import {ApAlbum, ApAlbumStyle} from 'apeman-react-album'

const ExampleComponent = React.createClass({
  render () {
    return (
      <div>
        <ApAlbumStyle />
        <ApAlbum width={ 180 }
                 images={ [
                    "https://raw.githubusercontent.com/apeman-asset-labo/apeman-asset-images/master/dist/dummy/02.jpg",
                    "https://raw.githubusercontent.com/apeman-asset-labo/apeman-asset-images/master/dist/dummy/03.jpg",
                    "https://raw.githubusercontent.com/apeman-asset-labo/apeman-asset-images/master/dist/dummy/04.jpg",
                    "https://raw.githubusercontent.com/apeman-asset-labo/apeman-asset-images/master/dist/dummy/05.jpg",
                    "https://raw.githubusercontent.com/apeman-asset-labo/apeman-asset-images/master/dist/dummy/06.jpg",
                    "https://raw.githubusercontent.com/apeman-asset-labo/apeman-asset-images/master/dist/dummy/07.jpg",
                    "https://raw.githubusercontent.com/apeman-asset-labo/apeman-asset-images/master/dist/dummy/08.jpg",
                    "https://raw.githubusercontent.com/apeman-asset-labo/apeman-asset-images/master/dist/dummy/09.jpg",
                    "https://raw.githubusercontent.com/apeman-asset-labo/apeman-asset-images/master/dist/dummy/10.jpg"
                ] }/>
      </div>
    )
  }
})

Components

ApAlbumImage

Props

NameTypeDefaultDescription

ApAlbumStyle

Props

NameTypeDefaultDescription
styleobject{}
highlightColorstringApStyle.DEFAULT_HIGHLIGHT_COLOR
backgroundColorApStyle.DEFAULT_BACKGROUND_COLOR

ApAlbum

Props

NameTypeDefaultDescription
imagesarray[]Image source URLs
thumbnailSizenumber48Size of thumbnail image
leftIconstring'fa fa-caret-left'Icon for left pager button
rightIconstring'fa fa-caret-right'Icon for right pager button
scalestring'fill'Image scale policy
widthnumberstring'420px'Component width
heightnumberstring'360px'Component height
id`ap-album-${uuid.v4()}`

License

This software is released under the MIT License.

Links

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.0.11

9 years ago

2.0.9

9 years ago

2.0.8

9 years ago

2.0.7

9 years ago

2.0.6

9 years ago

2.0.5

9 years ago

2.0.4

9 years ago

2.0.3

9 years ago

2.0.2

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.2

9 years ago