1.0.2 • Published 10 years ago

layoutjs v1.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

npm version

LayoutJS

An abstraction over flexbox with semantic names for enhanced readability and maintainability. Done using the CSSinJS pattern.

Usage

var layout = require('layoutjs');

var Demo = React.createClass({
    render: function() {
        return <div className="demo" style={layout.horizontal}>
                    <div>One</div>
                    <div>Two</div>
                    <div>Three</div>
               </div>;
}

Checkout the complete demo

And a plnkr that you can mess with.

Inspiration

Inspired by polymer layout.html.