View laravel-hotwire on GitHub
1M
v0.91.0
Search 71 components and 72 controllers by name, category or description.
Alert
Inline alert with title, description, icon, action and semantic variants
Variants
Heads up
You can compose alerts with an icon, title, description and optional action.
Deployment blocked
Fix the failing checks before promoting this release.
<hw:alert>
<hw:alert.icon>
<x-lucide-info aria-hidden="true" />
</hw:alert.icon>
<hw:alert.title>Heads up</hw:alert.title>
<hw:alert.description>
You can compose alerts with an icon, title, description and optional action.
</hw:alert.description>
</hw:alert>
<hw:alert variant="destructive">
<hw:alert.icon>
<x-lucide-triangle-alert aria-hidden="true" />
</hw:alert.icon>
<hw:alert.title>Deployment blocked</hw:alert.title>
<hw:alert.description>
Fix the failing checks before promoting this release.
</hw:alert.description>
</hw:alert>
With action
Use alert.action for a compact call to action pinned to the right side.
Project saved
The project brief was validated and saved as a draft.
<hw:alert>
<hw:alert.icon>
<x-lucide-circle-check aria-hidden="true" />
</hw:alert.icon>
<hw:alert.title>Project saved</hw:alert.title>
<hw:alert.description>
The project brief was validated and saved as a draft.
</hw:alert.description>
<hw:alert.action>
<hw:button size="sm" variant="outline">View draft</hw:button>
</hw:alert.action>
</hw:alert>