# react-global-grid

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

Latest version **1.4.1** (published 2020-07-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-global-grid
pnpm add react-global-grid
yarn add react-global-grid
bun add react-global-grid
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.1 |
| Published | 2020-07-07 |
| First published | 2020-05-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 236 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | UseAllFive |
| Maintainers | morrisbret |

## Links

- npm: https://www.npmjs.com/package/react-global-grid
- Repository: https://github.com/UseAllFive/react-global-grid
- Homepage: https://github.com/UseAllFive/react-global-grid#readme
- Issues: https://github.com/UseAllFive/react-global-grid/issues
- npm.io page: https://npm.io/package/react-global-grid

## Recent versions

- 1.4.1 (latest) — 2020-07-07
- 1.4.0 — 2020-07-07
- 1.3.0 — 2020-07-07
- 1.2.0 — 2020-06-05
- 1.1.0 — 2020-05-12
- 1.0.0 — 2020-05-08

## README

# react-global-grid

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

[![NPM](https://img.shields.io/npm/v/react-global-grid.svg)](https://www.npmjs.com/package/react-global-grid) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Peer Dependencies (Requirements)

- react
- styled-system
- rebass

## Install

```bash
npm install --save react-global-grid
```

## Usage

```jsx
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](https://medium.com/swlh/one-css-grid-to-rule-them-all-3e3386ad6155?source=friends_link&sk=521d01ba34820e8096c8075164dcee5f)

## License

MIT © [UseAllFive](https://github.com/UseAllFive)

---
_Source: https://npm.io/package/react-global-grid · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
