Installation
Usage
Component Code
Examples
- Basic
- Destructive
- Custom Colors
A basic alert with an icon, title and description.
Variants
The Alert component supports two variants:default- Standard alert with default backgrounddestructive- Alert for error or destructive actions
API Reference
Alert
| Prop | Type | Default |
|---|---|---|
variant | "default" | "destructive" | "default" |
className | string | - |
AlertTitle
| Prop | Type | Default |
|---|---|---|
className | string | - |
AlertDescription
| Prop | Type | Default |
|---|---|---|
className | string | - |