Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nem035/react-gridit

React grid using CSS Grid and styled-components
https://github.com/nem035/react-gridit

css-grid react styled-components

Last synced: 3 months ago
JSON representation

React grid using CSS Grid and styled-components

Awesome Lists containing this project

README

        



react-gridit

# [react-gridit](https://www.npmjs.org/package/react-gridit)

React grid using [CSS Grid](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout) and [styled-components](https://www.styled-components.com/)

## Install

```bash
npm i react-gridit
```

or

```bash
yarn add react-gridit
```

## Examples

[![Codesandbox examples](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/10p4l2m33) or checkout the [examples](https://github.com/nem035/react-gridit/tree/master/examples) React app.

You can run the examples locally by doing `npm run examples`.

### Rows

```jsx

1
2
3
4
5

```

Output:

react-gridit-rows

### Columns

```jsx

1
2
3
4
5

```

react-gridit-columns

### Nesting

```jsx


1
3


1


1
4
2

```

react-gridit-nesting

### Areas

```jsx

Header
Sidebar
Main1
Main2
Footer

```

Output:

react-gridit-area

### Responsive areas

```jsx

A
B
C
D

```

Output (match):

react-gridit-area-responsive-match

Output (no match):

react-gridit-area-responsive-no-match

## License

MIT