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>
Consequuntur omnis quia dolores doloribus sed eligendi. Mollitia est et excepturi impedit in ut rerum.

# Title

The title parameter sets the title of the block

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

Title box

Voluptas nisi est facilis. Nostrum quae est sed adipisci quo animi. Id expedita voluptates et earum voluptatem.

# 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>
Aliquam quis quo beatae id voluptates cumque. Tempora est exercitationem aperiam totam placeat.