apeman-react-container
v3.0.1
Published
apeman react package for container component.
Downloads
59
Readme
apeman-react-container
apeman react package for container component.
Installation
$ npm install apeman-react-container --save
Demo
Live demo is hosted on GitHub Pages.
Usage
'use strict'
import React from 'react'
import {ApContainer, ApContainerStyle} from 'apeman-react-container'
const ExampleComponent = React.createClass({
render () {
return (
<div>
<ApContainerStyle />
<ApContainer>
This is the content of the container.
</ApContainer>
</div>
)
}
})
Components
ApContainerStyle
Props
| Name | Type | Default | Description | | ---- | ---- | ------- | ----------- | | style | object | {} | | | | width | number | ApStyle.CONTAINER_WIDTH | | |
ApContainer
Props
| Name | Type | Default | Description | | ---- | ---- | ------- | ----------- | | relative | bool | false | | Has relative position | | centered | bool | | | With centered style |
License
This software is released under the MIT License.