@props([
    'modalClass' => null,
])

<form method="dialog" class="close-modal">
    <x-button.icon type="submit" label="Close the modal" autofocus>
        <x-icon-x />
    </x-button.icon>
</form>
<div
    @if(filled($modalClass))
        data-modal-class="{{ trim((string) $modalClass) }}"
    @endif
    {{ $attributes->class('modal-content') }}
>
    {{ $slot }}
</div>
