@props(['align' => 'right', 'width' => '48', 'contentClasses' => 'py-1 bg-white dark:bg-gray-700', 'dropdownClasses' => '', 'closeonselect' => true]) @php switch ($align) { case 'left': $alignmentClasses = 'ltr:origin-top-left rtl:origin-top-right start-0'; break; case 'top': $alignmentClasses = 'origin-top'; break; case 'none': case 'false': $alignmentClasses = ''; break; case 'right': default: $alignmentClasses = 'ltr:origin-top-right rtl:origin-top-left end-0'; break; } switch ($width) { case '48': $width = 'w-48'; break; case '64': $width = 'w-64'; break; case '72': $width = 'w-72'; break; } @endphp
{{ $trigger }}
{{-- I want this to only close on click if the closeonselect is true. --}}