This commit is contained in:
Saeed Vaziry
2024-03-24 09:56:34 +01:00
committed by GitHub
parent 884f18db63
commit 4d051330d6
1055 changed files with 14493 additions and 20278 deletions

View File

@ -0,0 +1,20 @@
@props([
"interval" => "30s",
"id",
"target" => null,
])
<div
id="{{ $id }}"
hx-get="{{ request()->getUri() }}"
hx-trigger="every {{ $interval }}"
@if ($target)
hx-target="{{ $target }}"
hx-select="{{ $target }}"
@else
hx-select="#{{ $id }}"
@endif
hx-swap="outerHTML"
>
{{ $slot }}
</div>