@props(['label', 'icon' => null, 'items' => null, 'hasArrow' => false, 'wrapperClass' => null, 'trigger' => null, 'position' => null])
@if ($trigger)
{!! $trigger !!}
@else
merge([
'type' => 'button',
'class' => 'dropdown-toggle',
'data-bs-toggle' => 'dropdown',
]) }}
>
@if ($icon)
@endif
{{ $label }}
@endif
$hasArrow,
"dropdown-menu-$position" => $position,
])>
{{ $items ?? $slot }}