React flexbox component following the guidelines set by the angular material team


License
MIT
Install
npm install react-material-flexbox@1.0.9

Documentation

React Material Flexbox

React Material Flexbox is a flexbox component built using the standards established by the Angular Material team. The sass is borrowed and manipulated from thier source. These rules follow the guidelines set by Material Design.

Installation

React Material Flexbox can be install as an npm package

npm install --save react-material-flexbox

Requirements

  • React
  • css-loader

Usage

import Flexbox from 'react-material-flexbox'

<Flexbox layout='row' align='center center'>
    { content }
</Flexbox>

Props

layout - string (row or column), specifies the flex direction for the component

layout='row'

flex - number, specifies the flex sizing for the component

flex="100"

align - string (align-item, justify-content), specifies the alignment and justificaiton of the component

align="center center"

For mobile / responsive specific styles, append the follow breakpoints to the prop

  • xs
  • sm
  • md
  • lg
layout-sm="column"