Used to create MoonShine layouts.
The Html
component serves as the foundation for building html page.
The component is a wrapper for the <html>
tag and already includes <!DOCTYPE html>
.
make(array|iterable $components = [])
$components
- array of components.
use MoonShine\UI\Components\Layout\Html; Html::make([ Head::make([]), Body::make([]),]);
<x-moonshine::layout.html> <x-moonshine::layout.head /> <x-moonshine::layout.body> // ... </x-moonshine::layout.body></x-moonshine::layout.html>