Grid
stableA responsive CSS grid wrapper.
Basic usage
A
B
Examples
Equal columns
Use the columns prop for simple equal-width grids.
Open
Review
Done
Dashboard composition
Combine Grid with column spans through className for dashboard cards.
Activity
72%
Queue
Health
Responsive spans
Use columns, spacing and breakpoint span props for MUI-style grid layouts.
sm=6
sm=6
Features
- Column presets.
- Gap presets.
Installation
bash
pnpm dlx structyl add gridAPI Reference
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. | — |