View laravel-hotwire on GitHub
1M
v0.91.0
Search 71 components and 72 controllers by name, category or description.
Icon
Inline SVG icon from the package-bundled Lucide icon set
The whole subset
name is the only prop; every other attribute is forwarded to the <svg>. These 38 icons are all of it — the subset covers package UI affordances and nothing else.
x
check
chevron-down
chevron-up
chevron-left
chevron-right
circle-x
info
alert-triangle
alert-circle
check-circle
arrow-up
arrow-down
arrow-left
arrow-right
ellipsis
copy
eye
eye-off
loader-circle
app-window
code
panel-left
bold
italic
underline
strikethrough
heading-1
heading-2
heading-3
link
list
list-ordered
quote
code-xml
minus
undo-2
redo-2
@php
$icons = [
'x', 'check', 'chevron-down', 'chevron-up', 'chevron-left', 'chevron-right',
'circle-x', 'info', 'alert-triangle', 'alert-circle', 'check-circle',
'arrow-up', 'arrow-down', 'arrow-left', 'arrow-right',
'ellipsis', 'copy', 'eye', 'eye-off', 'loader-circle',
'app-window', 'code', 'panel-left',
'bold', 'italic', 'underline', 'strikethrough',
'heading-1', 'heading-2', 'heading-3',
'link', 'list', 'list-ordered', 'quote', 'code-xml',
'minus', 'undo-2', 'redo-2',
];
@endphp
<div class="grid grid-cols-3 gap-3 sm:grid-cols-5 lg:grid-cols-7">
@foreach ($icons as $icon)
<div class="flex flex-col items-center gap-2 rounded-lg border p-3 text-center">
<hw:icon :name="$icon" class="size-5" />
<code class="text-[11px] leading-tight text-muted-foreground">{{ $icon }}</code>
</div>
@endforeach
</div>
When to use it, and when not to
Reach for hw:icon for the affordances the package itself draws. For application iconography, compose your own icon component — the subset is not meant to grow into an icon library.
Package affordance → hw:icon
Application icon → your own component
{{-- Chevrons, close buttons, status marks: the subset exists for these. --}}
<hw:button variant="outline" size="sm">
<hw:icon name="chevron-down" />
Sort
</hw:button>
{{-- The subset is deliberately small. Anything app-specific comes from
your own icon set — here blade-ui-kit's Lucide components. --}}
<hw:button variant="outline" size="sm">
<x-lucide-rocket class="size-4" />
Deploy
</hw:button>
Compose icons through component parts
Components such as Alert own icon layout through an explicit part. Wrap package or third-party graphics in hw:alert.icon instead of assigning package slots manually.
Package icon
The Alert part owns layout while hw:icon provides the graphic.
Your icon, same part
Wrap any icon in
hw:alert.icon instead of assigning package slots manually.{{-- The owning component part provides the layout role around any icon source. --}}
<hw:alert>
<hw:alert.icon>
<hw:icon name="info" aria-hidden="true" />
</hw:alert.icon>
<hw:alert.title>Package icon</hw:alert.title>
<hw:alert.description>The Alert part owns layout while hw:icon provides the graphic.</hw:alert.description>
</hw:alert>
{{-- Third-party icons use the same explicit part without package data attributes. --}}
<hw:alert>
<hw:alert.icon>
<x-lucide-party-popper aria-hidden="true" />
</hw:alert.icon>
<hw:alert.title>Your icon, same part</hw:alert.title>
<hw:alert.description>Wrap any icon in <code>hw:alert.icon</code> instead of assigning package slots manually.</hw:alert.description>
</hw:alert>