Grid

Render a container for quick and simple grid layout. Chose between two or four cols via the cols property. The layout is responsive (via container queries): a 4-column grid will automatically change to 3-columns and 2-columns, depending on the available vertical space. You can manipulate any other styling via utility classes.

'cols' => '2', // 2 | 4
x
x
x
x
<x-grid class="gap-6">
    <div class="bg-red-500 h-[240px] w-full rounded-xs">x</div>
    <div class="bg-red-500 h-[240px] w-full rounded-xs">x</div>
    <div class="bg-red-500 h-[240px] w-full rounded-xs">x</div>
    <div class="bg-red-500 h-[240px] w-full rounded-xs">x</div>
</x-grid>