Grid API
View componentThe 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.
| Prop | Type | Default |
|---|---|---|
| container# | booleanApply grid container styles. | true |
| item# | booleanMarks usage as a grid item for API parity. | — |
| columns# | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12Number of grid columns. | 12 |
| spacing# | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8Gap for both axes. | — |
| rowSpacing# | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8Vertical gap override. | — |
| columnSpacing# | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8Horizontal gap override. | — |
| size | xs | sm | md | lg | xl# | 'auto' | 'grow' | 1…12Column span at each breakpoint. | — |
| className# | stringAdditional Tailwind classes merged with the component defaults. | — |
Source code
If you didn't find what you need here, read the component implementation .