Skip to main content

Alerts

Alerts provide contextual feedback messages for typical user actions.

Alerts

Basic Usage​

LEAP has four preferred styles of alerts to match our needs and leverage user experiences:

alert-primary, alert-success, alert-warning or alert-danger

Auto-dismissed alerts should display for 3 seconds (for short descriptions) or 5 seconds (for longer descriptions).

Loading CodePen embed...

Other Variants​

Content​

Detailed alerts contain a title with description, and is auto-dismissed.

Loading CodePen embed...

Dismissible​

Dismissible alerts should not have auto-dismiss functionality and should be dismissed by the user.

Basic alerts only contain a description and the dismiss button. The users can dismiss the alert at any time.

Loading CodePen embed...

Detailed alerts contain a title, a description and the dismiss button. The user can dismiss the alert at any time.

Loading CodePen embed...