Components

Burger

The Burger component displays a button-icon for showing the mobile menu.

namespace App\MoonShine\Layouts;
 
use MoonShine\UI\Components\Layout\Burger;
 
final class MoonShineLayout extends AppLayout
{
public function build(): Layout
{
return Layout::make([
//...
Div::make([
ThemeSwitcher::make(),
 
Div::make([
Burger::make(),
])->class('menu-heading-burger'),
])->class('menu-heading-actions'),
//...
]);
}
}
<x-moonshine::layout.burger />