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>
Laborum est perferendis iste. Earum minima illo consequatur voluptas ex officia fugit. At omnis dolorem magni. Sunt voluptas ut voluptates quis sit assumenda id.

# Title

The title parameter sets the title of the block

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

Title box

Dolorum aliquam voluptatem veniam quo aut quas. Nihil est consequatur corrupti illo ab a. Vel est ipsa possimus fuga id magnam. Excepturi nemo quod reprehenderit eos.

# 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>
Ea qui recusandae quis alias libero atque molestias. Suscipit veniam nisi maiores. Sapiente fuga non ut.