Skip to content

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

Notifications You must be signed in to change notification settings

yhbrandon/react-material-flexbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published