structyl

The full prop reference for the Grid component. A responsive CSS grid wrapper.

Import

tsx
import { Grid } from '@structyl/styled';

Props

Grid

Grid container and item helper.

PropTypeDefault
container#boolean

Apply grid container styles.

true
item#boolean

Marks usage as a grid item for API parity.

columns#1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12

Number of grid columns.

12
spacing#0 | 1 | 2 | 3 | 4 | 5 | 6 | 8

Gap for both axes.

rowSpacing#0 | 1 | 2 | 3 | 4 | 5 | 6 | 8

Vertical gap override.

columnSpacing#0 | 1 | 2 | 3 | 4 | 5 | 6 | 8

Horizontal gap override.

size | xs | sm | md | lg | xl#'auto' | 'grow' | 1…12

Column span at each breakpoint.

className#string

Additional Tailwind classes merged with the component defaults.

Source code

If you didn't find what you need here, read the component implementation .

structyl — Accessible React Component Library