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>
Sed maxime occaecati quia explicabo. Qui consequatur dolorum eveniet nihil qui. Aut voluptas natus nulla molestiae quo. Ab neque rerum voluptatem excepturi ut.

# Title

The title parameter sets the title of the block

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

Title box

A sint at adipisci rerum eaque non. Accusantium amet vero commodi quia placeat. Rerum atque laboriosam qui laborum molestiae et. Ut atque aliquid officia tempore similique nobis.

# 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>
Voluptate laudantium excepturi accusamus aliquid aliquam et ex incidunt. Quas repellendus odit ullam rem laudantium dolorem officiis. Alias nemo libero dignissimos inventore possimus.