Visual Control

react-raster provides visual control of your Grid. Just add the prop control to the Box-component, that defines your grid.

Press ESC to switch it on and off.

Live Editor
Result
Press ESC to see the Grid

Production-handling#

To use visual control only in development, bind it to process.env.NODE_ENV.

<Box control={process.env.NODE_ENV !== "production"} />

Control Color#

You can setup a custom color for visual control.

<Box controlColor="rgba(0, 255, 0, 0.1)" />