refactor(slide-over): enhance class merging for improved component styling

This commit is contained in:
Andras Bacsai
2025-05-20 11:41:55 +02:00
parent 7fdf296c4a
commit f430ca779b

View File

@@ -1,7 +1,7 @@
@props(['closeWithX' => false, 'fullScreen' => false])
<div x-data="{
slideOverOpen: false
}" class="relative w-auto h-auto" {{ $attributes }}>
}" {{ $attributes->merge(['class' => 'relative w-auto h-auto']) }}>
{{ $slot }}
<template x-teleport="body">
<div x-show="slideOverOpen" @if (!$closeWithX) @keydown.window.escape="slideOverOpen=false" @endif