UI components

Box

Basics

To highlight content, you can use the moonshine::box component.

{{ fake()->text() }}
<x-moonshine::box>
{{ fake()->text() }}
</x-moonshine::box>

Heading

The title parameter sets the block title.

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

Dark Style

You can set a dark style for a block by specifying the dark parameter with a value of TRUE.

{{ fake()->text() }} ```
<x-moonshine::box :dark="true">
{{ fake()->text() }}
</x-moonshine::box>
```