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>
Qui ut explicabo neque ea. Excepturi consequatur ex nobis eos. Fugiat ex velit ut dolore. Dolorem nesciunt necessitatibus magni mollitia ipsum non. Ut quas est quidem odio ut cupiditate.
# 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>
Qui sequi eos culpa ducimus voluptatum voluptate. Ab sint quia ratione doloremque. Velit pariatur voluptas commodi adipisci non.
# 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>
Aut veritatis a praesentium doloremque. Vero nostrum unde dicta provident ut. Adipisci tempore minima recusandae dolor esse. Nulla accusamus rerum nulla dolorem sed.