1 @props(['align' => 'right', 'width' => '48', 'contentClasses' => 'py-1 bg-white'])
6 $alignmentClasses = 'origin-top-left left-0';
9 $alignmentClasses = 'origin-top';
13 $alignmentClasses = 'origin-top-right right-0';
24 <div class="relative" x-data="{ open: false }" @click.outside="open = false" @close.stop="open = false">
25 <div @click="open = ! open">
30 x-transition:enter="transition ease-out duration-200"
31 x-transition:enter-start="transform opacity-0 scale-95"
32 x-transition:enter-end="transform opacity-100 scale-100"
33 x-transition:leave="transition ease-in duration-75"
34 x-transition:leave-start="transform opacity-100 scale-100"
35 x-transition:leave-end="transform opacity-0 scale-95"
36 class="absolute z-50 mt-2 {{ $width }} rounded-md shadow-lg {{ $alignmentClasses }}"
37 style="display: none;"
38 @click="open = false">
39 <div class="rounded-md ring-1 ring-black ring-opacity-5 {{ $contentClasses }}">