Skip to content

Alert

Alert displays a short, prominent message to inform the user of a status or error without interrupting their workflow. Use inline within page content for contextual feedback; for ephemeral notifications, use Sonner.

Code
<Alert>
<AlertTitle>Order ready for review</AlertTitle>
<AlertDescription>
Pricing and availability were updated after the last save.
</AlertDescription>
</Alert>
Code
<Alert variant="destructive">
<AlertTitle>Order failed to sync</AlertTitle>
<AlertDescription>
Retry the sync before releasing this order to fulfillment.
</AlertDescription>
<AlertAction>
<Button variant="outline" size="sm">
Retry sync
</Button>
</AlertAction>
</Alert>
NameType/Description
variant"default" | "destructive" | null | undefined

No documented props

No documented props

No documented props