Getting Started

PeerDependencies#

  • react: >= 16.8.0,
  • react-dom: >= 16.8.0,
  • styled-components: >= 5.2.0

Install#

Install all dependencies with your favourite package-manager:

yarn add react-raster styled-components react react-dom

Basic Usage#

  • react-raster has only one component called Box.
  • Define brekpoints, gap (row/column) and a colspan to start a new Grid and nest Box-Elements inside each other, preserving the Grid.
  • Further style your Box-Elements directly via props.
  • Boxes and Grids can be freely nested inside each other.
  • If you set control, you can press Esc to see the grid.
import Box from "react-raster";
Live Editor
Result

Press ESC to see the Grid

Hello World!

Stop

Wars