@props([
'active' => false,
'activeIcon' => null,
'badge' => null,
'badgeColor' => null,
'grouped' => false,
'last' => false,
'first' => false,
'icon' => null,
'shouldOpenUrlInNewTab' => false,
'url',
])
$active,
])>
$active,
])>
@if (filled($icon))
! $active,
'text-primary-600 dark:text-primary-400' => $active,
])/>
@elseif ($grouped)
@endif
isSidebarCollapsibleOnDesktop())
x-show="true"
x-transition:enter="lg:transition lg:delay-100"
x-transition:enter-start="opacity-0"
x-transition:enter-end="opacity-100"
@endif
@class([
'fi-sidebar-item-label flex-1 truncate',
'text-gray-700 dark:text-gray-200' => ! $active,
'text-primary-600 dark:text-primary-400' => $active,
'font-semibold' => ! $grouped,
'font-medium' => $grouped,
])>
{{ $slot }}
@if (filled($badge))
isSidebarCollapsibleOnDesktop())
x-show="true"
x-transition:enter="lg:transition lg:delay-100"
x-transition:enter-start="opacity-0"
x-transition:enter-end="opacity-100"
@endif>
{{ $badge }}
@endif