mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-01-28 07:43:18 +00:00
🎨 Add new Flux icons: implement multiple reusable icon components (e.g., hand-raised, hand-thumb-up, heart, hashtag, home) with variant support for improved UI consistency.
This commit is contained in:
18
resources/views/flux/modal/trigger.blade.php
Normal file
18
resources/views/flux/modal/trigger.blade.php
Normal file
@@ -0,0 +1,18 @@
|
||||
@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>
|
||||
Reference in New Issue
Block a user