# Make
The Header system component is used to create a header block in MoonShine.
You can create a Header using the static make()
method
class Header
.
make(array $components = [])
$components
- массив компонентов которые располагаются в шапке.
namespace App\MoonShine; use MoonShine\Components\Layout\Header; use MoonShine\Components\Layout\LayoutBuilder;use MoonShine\Components\Layout\Search;use MoonShine\Contracts\MoonShineLayoutContract; final class MoonShineLayout implements MoonShineLayoutContract{ public static function build(): LayoutBuilder { return LayoutBuilder::make([ Header::make([ Search::make(), ]), //... ]); }}