Box

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

# Basics

To highlight content, you can use the moonshine::box component

<x-moonshine::box>
{{ fake()->text() }}
</x-moonshine::box>
Reiciendis quo ut fuga est iusto. Natus optio eius maxime nulla unde nobis quia.

# Title

The title parameter sets the title of the block

<x-moonshine::box title="Title box">
{{ fake()->text() }}
</x-moonshine::box>

Title box

Non minus voluptatem qui omnis fuga quasi et impedit. Id et rem necessitatibus inventore ipsa perferendis rerum. Deleniti autem ut quae occaecati iste et maxime.

# Dark style

You can set a dark style for a block by specifying the dark parameter with the value TRUE

<x-moonshine::box :dark="true">
{{ fake()->text() }}
</x-moonshine::box>
Blanditiis omnis voluptatibus ducimus rerum. Aperiam qui laborum ut deserunt eveniet. Sunt laudantium autem nulla est et.