EDS4 logo
@eds/grid
v4.0.10

Grid

A CSS grid version of the Box component.

The <Grid /> component is a version of <Box /> that applies display: grid.

Use the inline prop to apply display: inline-grid to the element.

Achieve a repeating column layout by using the gridTemplateColumns prop.

<Grid /> supports all of the BoxProps from the box component (except for display and unrelated BaseFlexProps props), with the addition of inline. See props for a full list.

It also supports the responsive prop syntax on most props. Try resizing your viewport to see the effects: