<div class="space-y-3">
<ui-alert>
<ui-alert-title>Heads up!</ui-alert-title>
<ui-alert-description>You can add components to your app using the CLI.</ui-alert-description>
</ui-alert>
<ui-alert variant="destructive">
<ui-alert-title>Error</ui-alert-title>
<ui-alert-description>Your session has expired. Please log in again.</ui-alert-description>
</ui-alert>
</div>
<ui-alert> <ui-alert-title> <ui-alert-description> <ui-alert-action>
<ui-alert>| Prop | Type | Default | Description |
|---|---|---|---|
variant | "default" | "destructive" | "default" | The visual style variant. |
All components also accept standard HTML attributes (class, id, style, data-*, aria-*, etc.) which are passed through to the underlying element.