Компоненты

BottomBar

Используется для создания шаблонов в MoonShine.

Компонент BottomBar предназначен для создания нижней панели навигации, которая может содержать меню и другие элементы управления.

make(iterable $components = [])
make(iterable $components = [])
  • $components - массив компонентов.
 namespaces
use MoonShine\MenuManager\MenuItem;
use MoonShine\UI\Components\Layout\BottomBar;
use MoonShine\UI\Components\Layout\Menu;
 
BottomBar::make([
Menu::make([
MenuItem::make('/', 'Item')
]);
])
 namespaces
use MoonShine\MenuManager\MenuItem;
use MoonShine\UI\Components\Layout\BottomBar;
use MoonShine\UI\Components\Layout\Menu;
 
BottomBar::make([
Menu::make([
MenuItem::make('/', 'Item')
]);
])
<x-moonshine::layout.bottom-bar>
<x-moonshine::layout.menu :elements="[['label' => 'Item', 'url' => '/']]"/>
</x-moonshine::layout.bottom-bar>
<x-moonshine::layout.bottom-bar>
<x-moonshine::layout.menu :elements="[['label' => 'Item', 'url' => '/']]"/>
</x-moonshine::layout.bottom-bar>