react-style-layout

0.0.3 • Public • Published

react-style-layout

Port of Polymer's layout system to React + React Style

HorizontalLayout

var HorizontalLayout = require('react-style-layout').HorizontalLayout;

<HorizontalLayout
    reverse={true}
    align={left|center|right}
    justify={justify|left|center|right|around}
    wrap={true}
    wrapReverse={true}
    styles={customStyles}
    inline={true}
    />

VerticalLayout

var VerticalLayout = require('react-style-layout').VerticalLayout;

<VerticalLayout
    reverse={true}
    align={top|center|bottom}
    justify={justify|top|center|bottom|around}
    wrap={true}
    wrapReverse={true}
    styles={customStyles}
    inline={true}
    />

Available styles for elements

var styles = require('react-style-layout').Styles;

<div styles={styles.fit|styles.fixedTop|styles.fixedRight|styles.fixedBottom|styles.fixedLeft|styles.fill|styles.stretch} />

Readme

Keywords

none

Package Sidebar

Install

npm i react-style-layout

Weekly Downloads

1

Version

0.0.3

License

none

Last publish

Collaborators

  • sanderspies