@pure @php $iconVariant ??= $attributes->pluck('icon:variant'); @endphp @php $iconTrailing ??= $attributes->pluck('icon:trailing'); @endphp @props([ 'initials' => null, 'chevron' => true, 'circle' => null, 'avatar' => null, 'name' => null, ]) @php // When using the outline icon variant, we need to size it down to match the default icon sizes... $classes = Flux::classes() ->add('group flex items-center') ->add('rounded-lg has-data-[circle=true]:rounded-full') ->add('[ui-dropdown>&]:w-full') // Without this, the "name" won't get truncated in a sidebar dropdown... ->add('hover:bg-zinc-800/5 dark:hover:bg-white/10') ; @endphp