Grid/Column

You're browsing the documentation for an old version of MoonShine. Consider upgrading your project to MoonShine 2.x.

You can use moonshine::grid to arrange elements on the page and moonshine::column components.

The grid consists of 12 columns.

<x-moonshine::grid>
<x-moonshine::column adaptiveColSpan="6" colSpan="6">
{{ fake()->text() }}
</x-moonshine::column>
<x-moonshine::column adaptiveColSpan="6" colSpan="6">
{{ fake()->text() }}
</x-moonshine::column>
</x-moonshine::grid>
Vitae aut optio quibusdam non. Quia culpa fuga accusamus ad est omnis magni maxime. Et omnis vitae doloremque nam veritatis quis vero. Accusantium repudiandae qui et non. Autem quae sint unde quia.
Veritatis quia unde est alias ratione. Aliquid incidunt consequatur voluptatibus ullam. Nulla voluptate et reprehenderit occaecati non iure quae. Et porro vel quam sit non deleniti.

adaptiveColSpan - the number of columns that occupy the block when the screen size is up to 1280 pixels.
colSpan - the number of columns that occupy a block with a screen size of 1280px.