Skip to main content

Introduction

The Grid component provides explicit grid syntax without extra styling:
int | array
default:"2"
The number of columns or responsive column configuration.

Basic usage

The Grid component is useful when you want explicit grid syntax:

Responsive grids

Define different column counts for different breakpoints:
Breakpoints (sm, md, lg, xl, 2xl) follow Tailwind’s responsive design system.

Column spanning

Control how many columns a component occupies:
Available spanning options:
  • Integer (e.g., columnSpan(2)) - spans 2 columns on lg and higher
  • 'full' - spans full width on lg and higher
  • columnSpanFull() - spans full width on all devices
  • Responsive array (e.g., ['md' => 2, 'xl' => 3])

Column starting position

Control where a component starts in the grid:

Column ordering

Control the visual order of components:
Responsive ordering:

Container queries

Use container queries for responsive layouts based on parent size:
Container breakpoints: @sm, @md, @lg, @xl, @2xl.

Fallback breakpoints

Support older browsers with fallback breakpoints:

Relationship integration

Grids can integrate with singular relationships:
string
The name of the relationship.