Alerts

Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.

Basic examples

Alerts are available for any length of text, as well as an optional dismiss button. For proper styling, use one of the four required contextual classes (e.g., .alert-success)

Links

Use the .alert-link utility class to quickly provide matching colored links within any alert.

Additional content

Alerts can also contain additional HTML elements like headings and paragraphs.

Dismissing

Alerts have dismiss option. Enabling it will show close button to the right of the alert.
Well done! You successfully read this important alert message.
Heads up! This alert needs your attention, but it's not super important.
Warning! Better check yourself, you're not looking too good.
Oh snap! Change a few things up and try submitting again.