mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-01-27 06:33:18 +00:00
19 lines
435 B
PHP
19 lines
435 B
PHP
@blaze
|
|
|
|
@props([
|
|
'shortcut' => null,
|
|
'name' => null,
|
|
])
|
|
|
|
<div
|
|
{{ $attributes->class('contents') }}
|
|
x-data
|
|
x-on:click="$el.querySelector('button[disabled]') || $dispatch('modal-show', { name: '{{ $name }}' })"
|
|
@if ($shortcut)
|
|
x-on:keydown.{{ $shortcut }}.document="$event.preventDefault(); $dispatch('modal-show', { name: '{{ $name }}' })"
|
|
@endif
|
|
data-flux-modal-trigger
|
|
>
|
|
{{ $slot }}
|
|
</div>
|