Skip to content

Alert

The Alert component is designed to display important messages or feedback to users.
It uses color to indicate status, making it clear and easy to understand at a glance.

  • Simple and direct: highlights messages without extra complexity.
  • Status colors: choose from Constants.statusColors for different alert types.
  • Flexible content: supports text, titles, descriptions, or other elements inside the alert.
  • Access colors individually: you can also access colors directly using Constants.themeColorVar, for example: Constants.themeColorVar.success.

Display messages for success, warnings, or important notifications within forms, dashboards, or other UI sections.


success description

warning description

error description

info description

PropTypeDescription
colorstringSets the alert color. Values can be from Constants.statusColors
or accessed individually via Constants.themeColorVar.
Example: Constants.themeColorVar.success
  • Use consistent colors for similar meanings (e.g., green for success, red for error).
  • Keep messages concise and clear.
  • Avoid displaying too many alerts at once to prevent clutter.