Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 17 days 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T17:18:21.000Z (almost 2 years ago)
- Last Synced: 2024-04-14T00:35:57.251Z (7 months 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
![React Rasta](https://cdn.rawgit.com/ChilliCream/react-rasta-logo/master/img/react-rasta-banner-light.svg)
[![release](https://img.shields.io/github/release/ChilliCream/react-rasta.svg)](https://github.com/ChilliCream/react-rasta/releases) [
![package](https://img.shields.io/npm/v/react-rasta.svg)](https://www.npmjs.com/package/react-rasta) [![license](https://img.shields.io/github/license/ChilliCream/react-rasta.svg)](https://github.com/ChilliCream/react-rasta/blob/master/LICENSE)
[![build](https://img.shields.io/circleci/project/github/ChilliCream/react-rasta/master.svg)](https://circleci.com/gh/ChilliCream/react-rasta/tree/master) [![coverage](https://img.shields.io/coveralls/ChilliCream/react-rasta.svg)](https://coveralls.io/github/ChilliCream/react-rasta?branch=master) [![better code](https://bettercodehub.com/edge/badge/ChilliCream/react-rasta)](https://bettercodehub.com/results/ChilliCream/react-rasta) [![code prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](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.