An inline callout drawn as a seated Mac OS X panel with a leading icon, bold 13px title and 12px muted body. Default, destructive, success and warning tones carry status in the icon and text colour, never colour alone.
Installation
Requires the theme. Register the @skeuomorph namespace and add @skeuomorph/skeuomorph first, as shown in the installation guide. The CLI also pulls it in as a dependency.
Without the namespace, install straight from the URL:
Usage
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"<Alert variant="default | destructive | success | warning">
<Terminal />
<AlertTitle>Heads up!</AlertTitle>
<AlertDescription>
You can add components and dependencies to your app using the cli.
</AlertDescription>
</Alert>Examples
Destructive
Success and warning
Two extra tones tint the panel, title and body. Pair them with an icon so the status does not rely on colour.
<Alert variant="success">
<CheckCircle2Icon />
<AlertTitle>Backup complete</AlertTitle>
</Alert>