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:sm, md, lg, xl, 2xl) follow Tailwind’s responsive design system.
Column spanning
Control how many columns a component occupies:- Integer (e.g.,
columnSpan(2)) - spans 2 columns onlgand higher 'full'- spans full width onlgand highercolumnSpanFull()- 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:Container queries
Use container queries for responsive layouts based on parent size:@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.