Getting Started
#
PeerDependencies- react: >= 16.8.0,
- react-dom: >= 16.8.0,
- styled-components: >= 5.2.0
#
InstallInstall all dependencies with your favourite package-manager:
- Yarn
- npm
#
Basic Usage- react-raster has only one component called
Box
. - Define
brekpoints
,gap
(row/column) and acolspan
to start a new Grid and nestBox
-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 pressEsc
to see the grid.
Live Editor
Result
Press ESC to see the Grid
Hello World!
Stop
Wars