Components

Alert

A short, prominent message about the state of the page.

Installation

npx shadcn@latest add @blank/alert

Usage

import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"
<Alert variant="info">
  <InfoIcon />
  <AlertTitle>Heads up</AlertTitle>
  <AlertDescription>The API key rotates every 90 days.</AlertDescription>
</Alert>

Examples

Variants

Status tints only the leading icon. The surface stays neutral, so several alerts on one page do not compete with the content around them.

Action