react-material-flexbox

1.0.9 • Public • Published

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"

Readme

Keywords

none

Package Sidebar

Install

npm i react-material-flexbox

Weekly Downloads

2

Version

1.0.9

License

MIT

Last publish

Collaborators

  • yhbrandon