0.0.8 • Published 8 years ago

react-material-grid v0.0.8

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

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

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago