Alert

Alerts display essential messages that require user attention or acknowledgement. They use colour, iconography, and distinct styling to communicate success, information, warnings, or errors.

Status

Component checklist

Component (RN)

React Native Component Status

In Refinement

Figma (RN)

Figma Component Status

Published

Code (Web)

HTML/CSS Code

Published

Figma (Web)

Figma Component Status

Published

Key Points

  • There are four styles of alert: information, warning, danger and success
  • Alert has different styling between Web and React Native, but all other guidelines are consistent
  • Each alert has a default icon
  • Keep alert messages concise, but they can wrap over multiple lines
  • Follow the content guidelines for written copy
  • Buttons should be used for actions; do not use links
  • Alert has the option to include a dismissible button or up to two call to action (CTA) buttons

Alerts Slim

Slim alerts currently appear in the Web library only.

Use a slim alert when it's nested within other content. Slim alerts are a lighter-weight version of the main alert component.

Styles

Styles are the same as the main alerts component. Use them in the same manner.

Slim alert styling removes borders to create a more subtle appearance when nested. If the text is longer than the containing space, it wraps onto a new line.

All four alerts slim examples

Variants of alerts slim

Example

This example illustrates an alert slim component used within a form.

Form Example

Form Example

The alert slim is placed in the context of a pattern