Components

Alerts

Contextual feedback messages for user actions with multiple variants and customizable content for government applications.

Basic Alerts

Standard alert variants for different types of messages and user feedback.

Information

This is a general information message.

Success

Your action was completed successfully.

Warning

Please review the information before proceeding.

Error

Something went wrong. Please try again.

Government Service Alerts

Real-world examples of alerts used in government services with bilingual content.

Service Maintenance

The passport application system will be under maintenance on Sunday, 2:00 AM - 6:00 AM.

পাসপোর্ট আবেদন সিস্টেম রবিবার ভোর ২টা থেকে ৬টা পর্যন্ত রক্ষণাবেক্ষণের কাজে বন্ধ থাকবে।

Application Approved

Your birth certificate application (ID: BC-2024-001234) has been approved. You can collect it from the registrar office within 30 days.

Additional Documents Required

Please submit the following documents to complete your application:

  • • Updated utility bill (not older than 3 months)
  • • Passport size photograph
  • • Attested copy of National ID

Payment Failed

Your payment could not be processed. Please check your payment details and try again.

Dismissible Alerts

Alerts that can be dismissed by users, commonly used for notifications and temporary messages.

New Policy Update

Updated guidelines for passport applications are now available.

Session Expires Soon

Your session will expire in 5 minutes. Please save your work.

Use Cases

System Notifications

Service maintenance, policy updates, system announcements

Success Feedback

Application submissions, payments processed, documents approved

Warnings & Validation

Form errors, missing documents, deadline reminders

Security Alerts

Login attempts, password changes, account security notifications

Best Practices

Content & Messaging

  • • Use clear, concise language that citizens can easily understand
  • • Provide specific next steps or actions users can take
  • • Include bilingual content for government services
  • • Use appropriate severity levels for different message types

Visual Design

  • • Use consistent color coding across alert types
  • • Include appropriate icons to reinforce message type
  • • Maintain sufficient contrast ratios for accessibility
  • • Position alerts prominently but not disruptively

User Experience

  • • Allow users to dismiss non-critical alerts
  • • Show alerts at the right time in user workflows
  • • Provide persistent alerts for critical system messages
  • • Include action buttons when users can resolve issues

Usage Guidelines

Do

  • Use appropriate alert types for different message severities
  • Provide clear, actionable messages and next steps
  • Include bilingual content for government services
  • Make critical alerts persistent and non-dismissible
  • Use consistent styling and positioning
  • Include relevant icons to support understanding

Don't

  • Use error alerts for non-critical information
  • Show multiple alerts of the same type simultaneously
  • Make all alerts dismissible without considering importance
  • Use vague or technical error messages
  • Place alerts in locations where they might be missed
  • Auto-dismiss critical security or error alerts

Component Specifications

Detailed specifications and characteristics of the Alert component for implementation guidance.

SpecificationDetailsPurpose & Usage
Component TypeNotification ElementDisplays important messages, warnings, and status information to users
Complexity LevelMediumModerate complexity with state management and dismissal functionality
Alert TypesInfo, Success, Warning, Error, AnnouncementDifferent alert variants to communicate various message types and urgency levels
Behavior OptionsDismissible, Auto-dismiss, Persistent, Action buttonsFlexible interaction patterns for different notification scenarios
Visual ElementsIcons, Color coding, Typography hierarchy, Action buttonsClear visual indicators to help users quickly understand message importance
Accessibility FeaturesARIA roles, Screen reader announcements, Keyboard navigation, Focus managementEnsures important messages reach all citizens including those with disabilities
Language SupportEnglish, Bengali (বাংলা)Bilingual message content and action buttons for government applications
Design SystemColor tokens, Typography scale, Icon system, Animation timingConsistent with CivixUI design principles and government branding
Positioning OptionsInline, Toast notifications, Banner, Modal overlayFlexible positioning to suit different interface contexts and urgency
Use CasesForm validation, System notifications, Status updates, Emergency announcementsEssential for communicating important information in government service applications

Accessibility

  • • Alerts use appropriate ARIA roles and properties for screen readers
  • • Color coding is supplemented with icons and text for color-blind users
  • • High contrast ratios maintained for all alert variants
  • • Dismiss buttons are keyboard accessible with proper focus indicators
  • • Alert content is announced to screen readers when displayed
  • • Critical alerts remain visible until explicitly acknowledged