Collapse
You're browsing the documentation for an old version of MoonShine. Consider upgrading your project to MoonShine 2.x.
-
Sections
# Basics
The moonshine::collapse component allows you to collapse content
<x-moonshine::collapse title="Hide / Show"> {{ fake()->text() }}</x-moonshine::collapse>
Labore facere culpa saepe eum dolores. Asperiores laudantium ducimus explicabo vel magni. Molestiae voluptatem mollitia quia.
# 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>
Tempore animi rerum et. Quibusdam magni modi voluptas quisquam beatae. Est occaecati dolores dicta illum pariatur ab qui et. Dolores est libero suscipit iure unde.
# 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>
Minima et et est omnis reprehenderit. Porro quasi dolorem dolor. Architecto aliquid facilis modi enim. Aut sint et amet veritatis qui quas. Modi minus sed ea consectetur qui hic est.