@props([ 'showClose' => true, 'closeOnEscape' => true, 'title' => null, 'subtitle' => null, 'persistent' => false ])
@teleport('body') except('wire:model')->class(["modal"]) }} x-data="{open: @entangle($attributes->wire('model')).live }" :class="{'modal-open !animate-none': open}" :open="open" @if($closeOnEscape) @keydown.escape.window = "$wire.{{ $attributes->wire('model')->value() }} = false" @endif > merge(['class' => 'modal-box relative transform overflow-hidden rounded-md ext-left shadow-xl w-full sm:w-2/3 lg:w-1/3 m-2 sm:m-0']) }} > @if ($showClose) @endif {{ $slot }} @endteleport