Alert

Displays a callout for user attention.

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

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).

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

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

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>