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>
Expedita rerum sed consequuntur dolores ut ut. Enim ullam enim dolorem culpa omnis enim qui. Distinctio aut quas illo nesciunt dolores quo velit. Quaerat quaerat enim minus voluptatibus quia.

# Title

The title parameter sets the title of the block

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

Title box

Suscipit nesciunt nam quasi eius in. Sunt eveniet ea esse quo natus dolor consectetur. Et quod qui cumque dolorum nostrum placeat.

# 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>
Ipsam repellendus necessitatibus laborum autem. Odit suscipit provident aliquid eos. Quos eum ducimus et ea aut eaque dolore quis.