View laravel-hotwire on GitHub
1M
v0.91.0
Search 71 components and 72 controllers by name, category or description.
Item
Composable list row with media, content, actions and link or button semantics
Rich list with variants
item.media, item.content and item.actions are the three slots; as, size and variant vary per row.
Notifications
Manage delivery preferences.
New
Profile
Update your display name and photo.
<hw:item.group>
<hw:item variant="outline">
<hw:item.media variant="icon">
<x-lucide-bell class="size-5" />
</hw:item.media>
<hw:item.content>
<hw:item.title>Notifications</hw:item.title>
<hw:item.description>Manage delivery preferences.</hw:item.description>
</hw:item.content>
<hw:item.actions>
<hw:badge variant="secondary">New</hw:badge>
</hw:item.actions>
</hw:item>
<hw:item.separator />
<hw:item variant="outline">
<hw:item.media variant="icon">
<x-lucide-user class="size-5" />
</hw:item.media>
<hw:item.content>
<hw:item.title>Profile</hw:item.title>
<hw:item.description>Update your display name and photo.</hw:item.description>
</hw:item.content>
<hw:item.actions>
<hw:button size="sm" variant="outline">Edit</hw:button>
</hw:item.actions>
</hw:item>
<hw:item.separator />
{{-- `as` swaps the element without losing the item layout --}}
<hw:item as="a" href="#" size="sm">
Advanced settings
</hw:item>
<hw:item as="button" size="xs" variant="muted">
Sign out
</hw:item>
</hw:item.group>
With image media
item.media variant="image" gives the media slot a fixed square and clips whatever you put in it.
Judith Black
Sent a proposal · 2 min ago
<hw:item.group>
<hw:item variant="outline">
<hw:item.media variant="image">
<img src="https://images.unsplash.com/photo-1494790108377-be9c29b29330?q=80&w=200&auto=format&fit=facearea&facepad=2" alt="" class="size-full object-cover">
</hw:item.media>
<hw:item.content>
<hw:item.title>Judith Black</hw:item.title>
<hw:item.description>Sent a proposal · 2 min ago</hw:item.description>
</hw:item.content>
<hw:item.actions>
<hw:button size="sm">Reply</hw:button>
</hw:item.actions>
</hw:item>
</hw:item.group>