Skip to content

dmitriykharchenko/react-material-grid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>
    )
  }

About

Grid from material.angular.org adopted for React

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published