Collapse

Вы просматриваете документацию старой версии MoonShine. Рассмотрите возможность обновления вашего проекта до MoonShine 2.x.

# Основы

Компонент moonshine::collapse позволяет сворачивать контент

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

Repellendus aut laborum aperiam quaerat possimus quis perferendis. Commodi suscipit est molestias nostrum ducimus. Harum aut eos neque. Qui maxime minima suscipit sit.

# Отобразить развернутым

Если параметр show имеет значение TRUE, то по умолчанию блок будет отображаться развернутым

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

Eos tenetur est consequatur harum. Error consequuntur ducimus dicta. Et velit quae quibusdam pariatur.

# Сохранение состояния

Если параметр persist имеет значение TRUE, то будет сохраняться состояние блока

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

Ipsam necessitatibus ducimus porro. Vel voluptatem qui totam. Deserunt beatae odit repellat voluptas.