1.0.1 • Published 10 years ago
apeman-react-background v1.0.1
apeman-react-background
apeman react package for background themes
Installation
$ npm install apeman-react-background --saveDemo
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
| Name | Type | Default | Description | |
|---|---|---|---|---|
| style | object | {} | ||
| highlightColor | string | ApStyle.DEFAULT_HIGHLIGHT_COLOR | ||
| backgroundColor | ApStyle.DEFAULT_BACKGROUND_COLOR |
ApBackground
Props
| Name | Type | Default | Description | |
|---|---|---|---|---|
| theme | string | types.oneOf(Object.keys(images)) |
ApCheckerboardBackground
Props
| Name | Type | Default | Description | |
|---|---|---|---|---|
| size | number | 44 | Item size | |
| color1 | string | '#CCC' | Background color | |
| color2 | string | 'transparent' |
License
This software is released under the MIT License.