@props([ 'active' => false, 'activeIcon' => null, 'badge' => null, 'badgeColor' => null, 'badgeTooltip' => null, 'icon' => null, 'shouldOpenUrlInNewTab' => false, 'url' => null, ]) @php $tag = $url ? 'a' : 'button'; @endphp
  • $active, ]) > <{{ $tag }} @if ($url) {{ \Filament\Support\generate_href_html($url, $shouldOpenUrlInNewTab) }} @else type="button" @endif @class([ 'fi-topbar-item-button flex items-center justify-center gap-x-2 rounded-lg px-3 py-2 outline-none transition duration-75 hover:bg-gray-50 focus-visible:bg-gray-50 dark:hover:bg-white/5 dark:focus-visible:bg-white/5', 'bg-gray-50 dark:bg-white/5' => $active, ]) > @if ($icon || $activeIcon) ! $active, 'text-primary-600 dark:text-primary-400' => $active, ]) /> @endif ! $active, 'text-primary-600 dark:text-primary-400' => $active, ]) > {{ $slot }} @if (filled($badge)) {{ $badge }} @endif @if (! $url) ! $active, 'text-primary-600 dark:text-primary-400' => $active, ]) /> @endif