1.4.1 • Published 4 years ago

react-global-grid v1.4.1

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

react-global-grid

Components for creating a global CSS grid system in your React project.

NPM JavaScript Style Guide

Peer Dependencies (Requirements)

  • react
  • styled-system
  • rebass

Install

npm install --save react-global-grid

Usage

import React from 'react'
import { ThemeProvider } from 'styled-components'
import { Grid, Column } from 'react-global-grid'

const theme = {
  gridStyles: {
    gridTemplateColumns: 'repeat(12, 1fr)',
    gridGap: 20
  }
}

const App = () => {
  return (
    <ThemeProvider theme={theme}>
      <Grid>
        <Column span='1 / 4'>column 1</Column>
        <Column span='5 / -1'>column 2</Column>
      </Grid>
    </ThemeProvider>
  )
}

Further reading

Read more about it on Medium

License

MIT © UseAllFive

1.4.1

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago