Documentation
Components
Alert

Alert

Displays a callout for user attention.

Installation

npx shadcn@latest add https://exawizards.com/exabase/design/registry/alert.json

Usage

import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"
<Alert>
  <Terminal className="h-4 w-4" />
  <AlertTitle>Heads up!</AlertTitle>
  <AlertDescription>
    You can add components and dependencies to your app using the cli.
  </AlertDescription>
</Alert>

API

Props of the div element are also available.

PropTypeDefaultDescription
variant"default" | "success" | "info" | "warning" | "error"defaultThe variant of the alert.

Examples

Variant

Elements