ChilliCream / React Rasta
Licence: mit
React Rasta is a powerful and flexible grid system for React
Stars: ✭ 88
Programming Languages
typescript
32286 projects
Projects that are alternatives of or similar to React Rasta
React Awesome Styled Grid
A responsive 8-point grid system layout for React using styled-components
Stars: ✭ 157 (+78.41%)
Mutual labels: grid, grid-layout, grid-system, styled-components
Cssgridgenerator
🧮 Generate basic CSS Grid code to make dynamic layouts!
Stars: ✭ 3,943 (+4380.68%)
Mutual labels: grid, grid-layout, grid-system
Bedrock
Foundational Layout Primitives for your React App
Stars: ✭ 173 (+96.59%)
Mutual labels: grid-layout, grid-system, styled-components
Tabulator
Interactive Tables and Data Grids for JavaScript
Stars: ✭ 4,329 (+4819.32%)
Mutual labels: grid, grid-layout, grid-system
grid-garden
Solutions to CSS Grid Garden
Stars: ✭ 79 (-10.23%)
Mutual labels: grid, grid-layout, grid-system
Griz
Grid library for React; Rescue the cat
Stars: ✭ 99 (+12.5%)
Mutual labels: grid, grid-system, styled-components
Grassy
Build layout through ASCII art in Sass (and more). No pre-built CSS. No additional markup.
Stars: ✭ 335 (+280.68%)
Mutual labels: grid, grid-layout, grid-system
Dragact
a dragger layout system with React style .
Stars: ✭ 710 (+706.82%)
Mutual labels: grid, grid-layout, grid-system
60gs
60GS - 60 Columns Grid System based on CSS Grid Layout
Stars: ✭ 65 (-26.14%)
Mutual labels: grid, grid-layout, grid-system
tb-grid
tb-grid is a super simple and lightweight 12 column responsive grid system utilizing css grid.
Stars: ✭ 19 (-78.41%)
Mutual labels: grid, grid-layout, grid-system
gutter-grid
A Sass flexbox based grid system that is able to replicate CSS grid-gap in IE11
Stars: ✭ 18 (-79.55%)
Mutual labels: grid, grid-system
ReactSimpleFlexGrid
A way to quickly add a Grid Layout to your React app 🚀
Stars: ✭ 185 (+110.23%)
Mutual labels: grid, grid-layout
Vue Grid Layout
A draggable and resizable grid layout, for Vue.js.
Stars: ✭ 5,170 (+5775%)
Mutual labels: grid, grid-layout
simple-grid-system
A CSS Flexbox grid system for web page . Easy to use it !!
Stars: ✭ 15 (-82.95%)
Mutual labels: grid, grid-system
React Gridlist
A virtual-scrolling GridList component based on CSS Grids
Stars: ✭ 394 (+347.73%)
Mutual labels: grid, grid-layout
React Styled Flexboxgrid
Grid system based on styled-components and flexbox for React
Stars: ✭ 515 (+485.23%)
Mutual labels: grid, styled-components
Gaintime
GainTime é um framework de HTML, CSS e JS para desenvolvimento de projetos responsivos, focado na simplicidade.
Stars: ✭ 19 (-78.41%)
Mutual labels: grid-layout, grid-system
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.
yarn add react-rasta
And when using npm it looks like this.
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
import React, {Component} from "react";
import {Column, Container, Row} from "react-rasta";
export default class App extends Component {
render() {
return (
<Container>
<Row>
<Column size={3}>Left</Column>
<Column size={{xs: 9, md: 3}}>Middle 1</Column>
<Column size={{xs: 9, md: 3}}>Middle 2</Column>
<Column size={3}>Right</Column>
</Row>
</Container>
);
}
}
Breakpoints (which will end up in media queries) could be redefined via ThemeProvider
.
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 (
<ThemeProvider theme={{breakpoints, containerWidth}}>
<Container>
<Row>
<Column size={3}>Left</Column>
<Column size={{phone: 9, tablet: 3}}>Middle 1</Column>
<Column size={{phone: 9, tablet: 3}}>Middle 2</Column>
<Column size={3}>Right</Column>
</Row>
</Container>
</ThemeProvider>
);
}
}
Documentation
Click here for the documentation.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].