@props(['icon', 'href' => '#', 'active' => false, 'badge' => null, 'badgeTitle' => null, 'badgeKey' => null]) class([ 'group flex min-h-11 items-center gap-3 rounded-md border px-3 py-2 text-sm transition-colors', 'border-accent/25 bg-accent/10 text-ink shadow-[inset_2px_0_0_var(--color-accent)]' => $active, 'border-transparent text-ink-2 hover:bg-raised hover:text-ink' => ! $active, ])->merge(['href' => $href]) }} @if ($active) aria-current="page" @endif> $active]) /> {{ $slot }} @if ($badgeKey !== null) {{-- Live badge: always in the DOM (hidden at zero) so the navBadges poller can update it in place without a page re-render. --}} @elseif ($badge !== null && $badge !== '') {{ $badge }} @endif