https://github.com/chillicream/react-rasta
React Rasta is a powerful and flexible grid system for React
https://github.com/chillicream/react-rasta
grid grid-framework grid-layout grid-system react styled-components
Last synced: about 1 month ago
JSON representation
React Rasta is a powerful and flexible grid system for React
- Host: GitHub
- URL: https://github.com/chillicream/react-rasta
- Owner: ChilliCream
- License: mit
- Created: 2018-03-15T11:05:05.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T17:18:21.000Z (over 2 years ago)
- Last Synced: 2024-04-14T00:35:57.251Z (about 1 year ago)
- Topics: grid, grid-framework, grid-layout, grid-system, react, styled-components
- Language: TypeScript
- Homepage: https://react-rasta.com
- Size: 1.26 MB
- Stars: 90
- Watchers: 6
- Forks: 13
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://github.com/ChilliCream/react-rasta/releases) [
](https://www.npmjs.com/package/react-rasta) [](https://github.com/ChilliCream/react-rasta/blob/master/LICENSE)
[](https://circleci.com/gh/ChilliCream/react-rasta/tree/master) [](https://coveralls.io/github/ChilliCream/react-rasta?branch=master) [](https://bettercodehub.com/results/ChilliCream/react-rasta) [](https://github.com/prettier/prettier)---
**The most powerful and flexible grid system for _React_**
_React Rasta_ is a 12 column grid system built on top of the _CSS flexbox_ layout and `styled-components`.
## Getting Started
Here you will find all you need to get started quickly.
### Install Package
First things first. Install the package `react-rasta` with _yarn_ or _npm_.
When using _yarn_ it looks like this.
```powershell
yarn add react-rasta
```And when using _npm_ it looks like this.
```powershell
npm install react-rasta --save
```#### Required Dependencies
_React Rasta_ depends on the following packages which need to be installed manually.
| Package | Version |
| ------------------- | ------------ |
| `react` | 16 or higher |
| `styled-components` | 3 or higher |### Code Examples
```tsx
import React, {Component} from "react";
import {Column, Container, Row} from "react-rasta";export default class App extends Component {
render() {
return (
Left
Middle 1
Middle 2
Right
);
}
}
```Breakpoints (which will end up in media queries) could be redefined via `ThemeProvider`.
```tsx
import React, {Component} from "react";
import {Column, Container, Row, ThemeProvider} from "react-rasta";const breakpoints = {
phone: 0,
tablet: 600,
desktop: 800,
};const containerWidth = {
// do not specify phone here
tablet: 560,
desktop: 760,
};export default class App extends Component {
render() {
return (
Left
Middle 1
Middle 2
Right
);
}
}
```## Documentation
Click [here](http://react-rasta.com) for the documentation.