← Back to Components

Alert

Contextual notification component with multiple variants for communicating important information to users

Alert Variants

Info Alert (Default)

Blue background with info-circle icon for neutral information

Success Alert

Green background with check-circle icon for positive feedback

Warning Alert

Yellow/orange background with warning-triangle icon for cautionary messages

Error Alert

Red background with close-circle icon for error messages

Dismissible Alerts

With Dismiss Button

When onDismiss prop is provided, alerts become dismissible with close button

Real-World Examples

Form Validation

Error alerts for form validation feedback

System Status

Warning alerts for system announcements and maintenance notices

Action Confirmation

Success alerts with dismissible option for action confirmations