Loading...
Installation
Install the following dependencies:
Copy and paste the following code into your project.
Loading...
Update the import paths to match your project setup.
Composition
Alert ├── AlertTitle ├── AlertDescription └── AlertAction (optional)
Examples
Default
Loading...
Destructive
Loading...
Title Only
Loading...
With Action
Loading...
With List
Loading...
API Reference
Alert
| Prop | Type | Default |
|---|---|---|
variant | "default" | "destructive" | "default" |
Angular
React
Solid
Svelte
Vue