View laravel-hotwire on GitHub
1M
v0.91.0
Search 71 components and 72 controllers by name, category or description.
Badge
Compact status or metadata label with semantic variants and optional link rendering
Variants
Default
Secondary
Destructive
Outline
Ghost
Link
<hw:badge>Default</hw:badge>
<hw:badge variant="secondary">Secondary</hw:badge>
<hw:badge variant="destructive">Destructive</hw:badge>
<hw:badge variant="outline">Outline</hw:badge>
<hw:badge variant="ghost">Ghost</hw:badge>
<hw:badge variant="link">Link</hw:badge>
As link
Use as="a" to render an anchor with badge styling.
<hw:badge as="a" href="#" variant="secondary">12 issues</hw:badge>
<hw:badge as="a" href="#" variant="outline">v1.0.0</hw:badge>
<hw:badge as="a" href="#" variant="destructive">Failing</hw:badge>
With icon
Verified
Online
Featured
<hw:badge variant="secondary">
<hw:icon name="check" />
Verified
</hw:badge>
<hw:badge variant="outline">
<span class="inline-block size-2 rounded-full bg-emerald-500"></span>
Online
</hw:badge>
<hw:badge>
<x-lucide-star class="size-3" />
Featured
</hw:badge>