@props([ 'closeWithX' => false, 'open' => false, 'size' => 'lg', ]) @php $panelWidth = match ($size) { 'md' => 'min-w-0 w-full max-w-2xl sm:min-w-[28rem]', 'xl' => 'min-w-0 w-full max-w-5xl sm:min-w-[36rem] lg:min-w-[48rem]', default => 'min-w-0 w-full max-w-4xl sm:min-w-[32rem] lg:min-w-[42rem]', }; @endphp {{-- `contents` so event-only shells (no trigger in the default slot) do not leave a ghost layout box above layer-2 tabs. Trigger buttons in the slot still flow into the parent as if unwrapped. --}}