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 = [])
make(iterable $components = [])
make(iterable $components = [])
make(iterable $components = [])
make(iterable $components = [])
$components - array of components.
use MoonShine\UI\Components\Layout\Body;
use MoonShine\UI\Components\Layout\Wrapper;
Body::make([
Wrapper::make([
])
])
namespaces
use MoonShine\UI\Components\Layout\Body;
use MoonShine\UI\Components\Layout\Wrapper;
Body::make([
Wrapper::make([
// ...
])
])
use MoonShine\UI\Components\Layout\Body;use MoonShine\UI\Components\Layout\Wrapper;Body::make([ Wrapper::make([ // ... ])])
namespaces
use MoonShine\UI\Components\Layout\Body;
use MoonShine\UI\Components\Layout\Wrapper;
Body::make([
Wrapper::make([
// ...
])
])
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>
<x-moonshine::layout.body>
<x-moonshine::layout.wrapper>
Content
</x-moonshine::layout.wrapper>
</x-moonshine::layout.body>
<x-moonshine::layout.body> <x-moonshine::layout.wrapper> Content </x-moonshine::layout.wrapper></x-moonshine::layout.body>
<x-moonshine::layout.body>
<x-moonshine::layout.wrapper>
Content
</x-moonshine::layout.wrapper>
</x-moonshine::layout.body>
<x-moonshine::layout.body> <x-moonshine::layout.wrapper> Content </x-moonshine::layout.wrapper></x-moonshine::layout.body>