apeman-react-container

apeman react package for container component.

Usage no npm install needed!

<script type="module">
  import apemanReactContainer from 'https://cdn.skypack.dev/apeman-react-container';
</script>

README

apeman-react-container

Build Status Code Climate Code Coverage npm Version JS Standard

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
centered bool

License

This software is released under the MIT License.

Links