Alert
Displays a callout for user attention.
Heads up!
You can add components to your app using the cli.
Component Code
<x-aui::alert>
<x-slot:icon>
<i class="fa-solid fa-terminal h-4 w-4"></i>
</x-slot:icon>
<x-slot:title>Heads up!</x-slot:title>
<x-slot:description>
You can add components to your app using the cli.
</x-slot:description>
</x-aui::alert>
Destructive
Heads up!
You can add components to your app using the cli.
Component Code
<x-aui::alert variant="destructive">
<x-slot:icon>
<i class="fa-solid fa-terminal h-4 w-4"></i>
</x-slot:icon>
<x-slot:title>Heads up!</x-slot:title>
<x-slot:description>
You can add components to your app using the cli.
</x-slot:description>
</x-aui::alert>
Dismissable alert
The alert
component supports being dismissed (ie the alert can be hidden when the close button is pressed).
Heads up!
You can add components to your app using the cli.
Component Code
<x-aui::alert dismissable>
<x-slot:icon>
<i class="fa-solid fa-terminal h-4 w-4"></i>
</x-slot:icon>
<x-slot:title>Heads up!</x-slot:title>
<x-slot:description>
You can add components to your app using the cli.
</x-slot:description>
</x-aui::alert>
Dismiss On Timeout
Additionally, an alert can be dismissed after a timeout
Heads up!
You can add components to your app using the cli.
Component Code
<x-aui::alert dismissOnTimeout timeout="5000">
<x-slot:icon>
<i class="fa-solid fa-terminal h-4 w-4"></i>
</x-slot:icon>
<x-slot:title>Heads up!</x-slot:title>
<x-slot:description>
You can add components to your app using the cli.
</x-slot:description>
</x-aui::alert>
You could also decide to start the timeout on intersect
Heads up!
You can add components to your app using the cli.
Component Code
<x-aui::alert dismissOnTimeout startTimeoutOnIntersect timeout="5000">
<x-slot:icon>
<i class="fa-solid fa-terminal h-4 w-4"></i>
</x-slot:icon>
<x-slot:title>Heads up!</x-slot:title>
<x-slot:description>
You can add components to your app using the cli.
</x-slot:description>
</x-aui::alert>