Alerts
Alerts Examples
Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.
Alert Primary .alert-primary
Alert Secondary .alert-secondary
Alert Success .alert-success
Alert Danger .alert-danger
Link color
Use the .alert-link
utility class to quickly provide matching colored links within any alert.
Alert Success .alert-link
Alert Danger .alert-link
Alert Warning .alert-link
Alert Info .alert-link
Icon Examples
Alerts are available for any length of text with icon, as well as an optional dismiss button.
Alert Success .alert-success
Alert Info .alert-info
Alert Warning .alert-warning
Alert Danger .alert-danger
Dismissing
You can see this in action with a live demo:
Alert Primary .alert-dismissible
Alert Info .alert-dismissible
Alert success .alert-dismissible
Alert Light .alert-dismissible
Alerts Color Examples
Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.
Alert Primary .alert-primary .bg-primary .border-0
Alert Secondary .alert-secondary .bg-secondary .border-0
Alert Success .alert-success .bg-success .border-0
Alert Danger .alert-danger .bg-danger .border-0
Alert pink .alert-pink .bg-pink .border-0
Alert purple .alert-purple .bg-purple .border-0
Alert dark .alert-dark .bg-dark .border-0
Alert light .alert-light .bg-light .border-0
Additional content
Alerts can also contain additional HTML elements like headings and paragraphs.
Well done!
Aww yeah, you successfully read this important alert message. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.
Whenever you need to, be sure to use margin utilities to keep things nice and tidy.