---
title: "Alert"
description: "A callout for important messages, with an icon, title, and description, in default and destructive variants."
plan: Free
docs: https://ui.edbn.me/docs/components/alert
---

# Alert

A callout for important messages, with an icon, title, and description, in default and destructive variants.

## Installation

```bash
npx shadcn@4.19.0 add https://ui.edbn.me/r/alert.json
```

## Dependencies
- npm: class-variance-authority@^0.7.1
- edbn: edbn-base

## Usage

```tsx examples/alert-basic.tsx
"use client";
import { CircleAlert } from "lucide-react";
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";

export default function AlertBasicPreview() {
  return (
    <Alert className="max-w-dialog">
      <CircleAlert />
      <AlertTitle>Heads up</AlertTitle>
      <AlertDescription>Your trial ends in three days.</AlertDescription>
    </Alert>
  );
}
```

## Files
- components/ui/alert.tsx (78 lines)

## For agents
- Base theme, once per project: npx shadcn@4.19.0 add https://ui.edbn.me/r/edbn-base.json
- MCP server with search, items, examples and source: https://ui.edbn.me/mcp
- Every page and item: https://ui.edbn.me/llms.txt
