Collapse

You're browsing the documentation for an old version of MoonShine. Consider upgrading your project to MoonShine 2.x.

# Basics

The moonshine::collapse component allows you to collapse content

<x-moonshine::collapse title="Hide / Show">
{{ fake()->text() }}
</x-moonshine::collapse>

Nesciunt quae optio quia non. Omnis nostrum consectetur corporis dolores quae quae sapiente. Nemo in delectus consequuntur ipsa sit voluptatem cum. Mollitia nam voluptatum explicabo laborum.

# Show expanded

If the show parameter is set to TRUE, then by default the block will be displayed expanded

<x-moonshine::collapse title="Hide / Show" :show="true">
{{ fake()->text() }}
</x-moonshine::collapse>

Et voluptas molestiae et aliquam mollitia aut. Itaque vero officiis exercitationem molestias vitae aut ab aliquid. Reprehenderit numquam ullam ad architecto.

# Save state

If the persist parameter is set to TRUE, then the state of the block will be saved

<x-moonshine::collapse title="Hide / Show" :persist="true">
{{ fake()->text() }}
</x-moonshine::collapse>

Itaque ex qui qui libero. In commodi totam ea modi excepturi corporis. Vero vitae sit sit est quae ea aut dolorem. In ex sint expedita necessitatibus.