@pure @php $logoDark ??= $attributes->pluck('logo:dark'); @endphp @props([ 'name' => null, 'logo' => null, 'logoDark' => null, 'alt' => null, 'href' => '/', ]) @php $classes = Flux::classes() ->add('h-10 flex items-center px-2 in-data-flux-sidebar-collapsed-desktop:w-10 in-data-flux-sidebar-collapsed-desktop:px-2') ->add('in-data-flux-sidebar-collapsed-desktop:in-data-flux-sidebar-active:absolute') ->add('in-data-flux-sidebar-collapsed-desktop:in-data-flux-sidebar-active:opacity-0') ; $textClasses = Flux::classes() ->add('text-sm font-medium truncate [:where(&)]:text-zinc-800 dark:[:where(&)]:text-zinc-100') ; @endphp class([ $classes, 'gap-2' ]) }} data-flux-sidebar-brand>
attributes->class('flex items-center justify-center [:where(&)]:h-6 [:where(&)]:min-w-6 [:where(&)]:rounded-sm overflow-hidden shrink-0') }}> {{ $logo }}
{{ $alt }} {{ $alt }} {{ $slot }}
{{ $name }}
class($classes) }} data-flux-sidebar-brand>
attributes->class('flex items-center justify-center [:where(&)]:h-6 [:where(&)]:min-w-6 [:where(&)]:rounded-sm overflow-hidden shrink-0') }}> {{ $logo }}
{{ $alt }} {{ $slot }}