1.0.1 • Published 9 years ago

apeman-react-background v1.0.1

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

apeman-react-background

Build Status Code Climate Code Coverage npm Version JS Standard

apeman react package for background themes

Installation

$ npm install apeman-react-background --save

Demo

Live demo is hosted on GitHub Pages.

Usage

'use strict'

import React from 'react'
import {ApBackground, ApBackgroundStyle} from 'apeman-react-background'

const ExampleComponent = React.createClass({
  render () {
    return (
      <div>
        <ApBackgroundStyle />
        <ApBackground/>
      </div>
    )
  }
})

Components

ApBackgroundStyle

Props

NameTypeDefaultDescription
styleobject{}
highlightColorstringApStyle.DEFAULT_HIGHLIGHT_COLOR
backgroundColorApStyle.DEFAULT_BACKGROUND_COLOR

ApBackground

Props

NameTypeDefaultDescription
themestringtypes.oneOf(Object.keys(images))

ApCheckerboardBackground

Props

NameTypeDefaultDescription
sizenumber44Item size
color1string'#CCC'Background color
color2string'transparent'

License

This software is released under the MIT License.

Links