README
React Material Grid
The grid from material.angular wrapped for React
.
npm install react-material-grid --save
Docs
Everything you need is on material.angularjs.org/1.0.0/layout/introduction
Example
import Grid from 'react-material-grid'
export default (props) => {
return (
<Grid layout="row" layoutAlign="center center">
<Grid flexSm={ 100 } flex={ 50 }>
Hello here
<Grid>
<Grid flexSm={ 100 } flex={ 50 }>
Hello here too!
<Grid>
</Grid>
)
}
And if you need some specific component in your grid:
import Grid from 'react-material-grid'
import {
SomeComponent,
OtherComponent
} from 'components'
export default (props) => {
return (
<Grid element={ section } layout="row" layoutAlign="center center">
<Grid element={ SomeComponent } flexSm={ 100 } flex={ 50 }>
Hello here
<Grid>
<Grid element={ OtherComponent } flexSm={ 100 } flex={ 50 }>
Hello here too!
<Grid>
</Grid>
)
}