View laravel-hotwire on GitHub
1M
v0.91.0
Search 71 components and 72 controllers by name, category or description.
Frame
Turbo Frame with lazy loading, history control, polling, transitions and scroll preservation
Remote task explorer
The frame loads independently, then owns its search and status navigation. Filtering updates only this region while advance keeps browser history useful.
<hw:frame
id="turbo-demo-results"
:src="$resultsUrl"
lazy
view-transition
refresh="morph"
class="block [view-transition-name:turbo-demo-results]"
>
<div class="space-y-4" aria-label="Loading tasks">
<div class="grid gap-3 sm:grid-cols-[minmax(0,1fr)_12rem_6rem]">
<hw:skeleton class="h-8 w-full" />
<hw:skeleton class="h-8 w-full" />
<hw:skeleton class="h-8 w-full" />
</div>
<div class="border-b pb-3">
<hw:skeleton class="h-4 w-28" />
</div>
@foreach (range(1, 3) as $index)
<div class="flex items-center justify-between gap-4 rounded-lg border p-4">
<div class="grow space-y-2">
<hw:skeleton class="h-4 w-2/5" />
<hw:skeleton class="h-3 w-4/5" />
</div>
<hw:skeleton class="h-7 w-20" />
</div>
@endforeach
</div>
</hw:frame>
Polling for live summaries
Polling is useful for small, idempotent status panels. Keep the interval deliberate and leave user-driven collections on regular frame navigation.
Remote source
src remains the authoritative endpoint.
Controlled interval
poll-interval is expressed in milliseconds.
Morph refresh
Stable nodes and focus survive each refresh.
<div class="grid gap-4 sm:grid-cols-3">
<div class="rounded-lg border p-4">
<x-lucide-activity class="mb-3 size-5 text-primary" />
<p class="font-medium">Remote source</p>
<p class="mt-1 text-sm text-muted-foreground"><code>src</code> remains the authoritative endpoint.</p>
</div>
<div class="rounded-lg border p-4">
<x-lucide-timer-reset class="mb-3 size-5 text-primary" />
<p class="font-medium">Controlled interval</p>
<p class="mt-1 text-sm text-muted-foreground"><code>poll-interval</code> is expressed in milliseconds.</p>
</div>
<div class="rounded-lg border p-4">
<x-lucide-refresh-cw class="mb-3 size-5 text-primary" />
<p class="font-medium">Morph refresh</p>
<p class="mt-1 text-sm text-muted-foreground">Stable nodes and focus survive each refresh.</p>
</div>
</div>