Used to create MoonShine layouts.
The Wrapper
component is used as a wrapper to ensure that the sidebar and content part are displayed correctly.
It is used immediately after the Body
.
make(iterable $components = [])
$components
- array of components.
use MoonShine\UI\Components\Layout\Body;use MoonShine\UI\Components\Layout\Wrapper; Body::make([ Wrapper::make([ // ... ])])
<x-moonshine::layout.body> <x-moonshine::layout.wrapper> Content </x-moonshine::layout.wrapper></x-moonshine::layout.body>