Alerts

An alert is a short and attention-grabbing message providing feedback about some important aspect of the service which may need to be handled by the user. Read more about alerts in the UX Guidelines.

Wrap any text and an optional dismiss button in .alert for basic alert messages.

Use when:

  • You need the user to pay attention to something unexpected
  • User should likely change his course of action because of the alert
  • The message may stay on screen until handled

Design

Options

There are 4 options for alerts and to apply them to you alert message simply add one of the following classes: .alert-success, .alert-info, .alert-warning or .alert-danger.

Success .alert-success

Info .alert-info

Warning .alert-warning

Danger .alert-danger

Sizing

Fancy small alerts? Add .alert-sm for the small version.

Success .alert-success.alert-sm

Info .alert-info.alert-sm

Warning .alert-warning.alert-sm

Danger .alert-danger.alert-sm

Medium icons

For a medium icon size add .alert-icon-md to the alert main wrapper.

Success .alert-success.alert-icon-md

Info .alert-info.alert-icon-md

Warning .alert-warning.alert-icon-md

Danger .alert-danger.alert-icon-md

Large icons

For a large icon size add .alert-icon-lg to the alert main wrapper.

Success .alert-success.alert-icon-lg

Info .alert-info.alert-icon-lg

Warning .alert-warning.alert-icon-lg

Danger .alert-danger.alert-icon-lg

Dismissible alerts

Build on any alert by adding an optional .alert-dismissible and close button.