Alert
Displays important messages to attract user attention.
Default
The default alert uses a card background with a subtle border.
Note
This is a default alert with a clean, bordered appearance. Use it for general informational messages.
Destructive
Used for error messages or critical warnings.
Error
Your session has expired. Please log in again to continue.
Without Title
Alerts can also be used without a title for simple messages.
Your profile has been updated successfully.
Unable to connect to the server. Please check your connection.
Without Icon
Alerts can be used without icons for a cleaner look.
Update Available
A new version of the application is available. Please refresh the page to update.
Maintenance Scheduled
The system will be under maintenance on Saturday from 2 AM to 4 AM. Some services may be temporarily unavailable.
Real-world Scenarios
Common use cases for alerts in applications.
Polish pass complete
Borders, spacing and typography align with the Clarity spec.
Release notes
We've shipped dark mode and improved keyboard navigation. Visit Settings → Appearance to try it out.
Enable Notifications
Stay updated with project changes. Enable browser notifications to receive real-time updates.
Sync Failed
Unable to sync your changes. Some edits may not be saved. Please check your internet connection and try again.
Compact / Inline
Use the compact size for inline or field-level validation messages.
This field is required.
Invalid email format.
With Actions
Alerts can include action buttons for user interaction.
New update available
Version 2.0 is now available with new features and improvements.
Connection lost
Unable to connect to the server. Your changes may not be saved.
Custom Success Style
Custom styled success alert using inline classes.
Payment Successful
Your payment of $99.00 has been processed successfully.
A receipt has been sent to your email, and your plan is active immediately.