Grid
A minimal auto-placed CSS-grid primitive. The parent owns the grid (columns + gap) and every direct child flows into an equal cell — the children need no per-cell prop. Works with any content. For variable-width cells, bring your own
grid + col-span-*; FieldGroup is the field-specific sibling.
Basic — fixed columns
One
Two
Three
Four
Five
Six
Responsive columns
Pass a per-breakpoint map — the grid reflows as the viewport changes (resize to see 1 → 2 → 4).
One
Two
Three
Four
Five
Six
Any content — cards
First card in the grid.
Second card in the grid.
Third card in the grid.
Gap
A single Tailwind step is symmetric; { x, y } sets column/row gaps independently.
gap=2
One
Two
Three
Four
Five
Six
gap=8
One
Two
Three
Four
Five
Six
gap={{ x: 6, y: 2 }} — wide columns, tight rows
One
Two
Three
Four
Five
Six