- Docs
- Components
- Alert
Alert
Displays a callout for user attention.
Preview
Code
Heads up!
You can add components to your app using the cli.
Installation
CLI
Manual
Copy and paste the following code into your project.
Update the import paths to match your project setup.
Usage
Single import
Multiple imports
Examples
Default
Preview
Code
Heads up!
You can add components to your app using the cli.
Warning
Preview
Code
Warning
Your session will expire in 5 minutes. Please save your work.
Danger
Preview
Code
Error
Your session has expired. Please log in again.
API Reference
Prop | Type | Default |
---|---|---|
variant | enum | "default" |