@props([ 'availableHeight' => null, 'availableWidth' => null, 'flip' => true, 'maxHeight' => null, 'offset' => 8, 'placement' => null, 'shift' => false, 'size' => false, 'sizePadding' => 16, 'teleport' => false, 'trigger' => null, 'width' => null, ]) @php use Filament\Support\Enums\Width; $sizeConfig = collect([ 'availableHeight' => $availableHeight, 'availableWidth' => $availableWidth, 'padding' => $sizePadding, ])->filter()->toJson(); if (is_string($width)) { $width = Width::tryFrom($width) ?? $width; } @endphp
class(['fi-dropdown']) }} >
attributes->class(['fi-dropdown-trigger']) }} > {{ $trigger }}
@if (! \Filament\Support\is_slot_empty($slot))
has('wire:key')) wire:ignore.self wire:key="{{ $attributes->get('wire:key') }}.panel" @endif @class([ 'fi-dropdown-panel', ($width instanceof Width) ? "fi-width-{$width->value}" : (is_string($width) ? $width : ''), 'fi-scrollable' => $maxHeight || $size, ]) @style([ "max-height: {$maxHeight}" => $maxHeight, ]) > {{ $slot }}
@endif