Add wire:navigate support by default in menu items #2

This commit is contained in:
samy
2025-08-16 08:37:55 -10:00
parent da3c6ab144
commit b79d529b0c
4 changed files with 12 additions and 4 deletions
@@ -1,6 +1,13 @@
@props([
'label' => '',
'link' => null,
'useNavigate' => true
])
<li><a class="whitespace-nowrap" @if($link) href="{{ $link }}" @endif>{{ $label }}</a></li>
<li>
<a
class="whitespace-nowrap"
@if($link) href="{{ $link }}" @endif
@if($useNavigate) wire:navigate @endif
>{{ $label }}</a>
</li>