Alert

Displays a callout for user attention.

Default

A basic alert with title and description.

<Alert>
    <AlertTitle>Heads up!</AlertTitle>
    <AlertDescription>
        You can add components to your app using the CLI.
    </AlertDescription>
</Alert>

Destructive

Use the Destructive variant for critical alerts.

<Alert Variant="AlertVariant.Destructive">
    <AlertTitle>Error</AlertTitle>
    <AlertDescription>
        Your session has expired. Please log in again.
    </AlertDescription>
</Alert>

More Examples

Additional alert styles for common messaging.

<Alert>
    <AlertTitle>Success!</AlertTitle>
    <AlertDescription>
        Your payment was processed successfully.
    </AlertDescription>
</Alert>

<Alert>
    <AlertTitle>Tip</AlertTitle>
    <AlertDescription>
        Press <kbd>Ctrl + K</kbd> to open the command menu.
    </AlertDescription>
</Alert>