Alert
Displays a message to attract user attention.
Heads up!
You can add components to your app using the CLI.
Installation
npx neobrutal add alert
Usage
import { Alert, AlertTitle, AlertDescription } from "@/components/ui/alert"
<Alert><AlertTitle>Title</AlertTitle><AlertDescription>Description</AlertDescription></Alert>
Examples
Default
Info
This is an informational message.
Destructive
Error
Something went wrong. Please try again.
Success
Success
Your changes have been saved.
Warning
Warning
This action cannot be undone.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "default" | "neutral" | "destructive" | "success" | "warning" | "default" | The visual style of the alert. |