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>
Fuga quisquam voluptatibus voluptas dolores unde fuga. Tempora et molestiae vero nemo illum in. Magnam nam quasi natus eius. Quos quis sint qui voluptas.

# Title

The title parameter sets the title of the block

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

Title box

Tempore dolor animi beatae repellat quia laborum ullam. Nam et repudiandae perspiciatis. Laudantium ut sint veritatis veniam. Non quo esse et et harum.

# 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>
Nam et aut quas sit quis. Id exercitationem maxime consequatur itaque. Corrupti et sunt nulla rerum adipisci recusandae. Excepturi eum laborum sint labore.