Alerts Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.
@@include('_includes/_page-actions.html')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)
This is a primary alert—check it out!
This is a success alert—check it out!
This is a danger alert—check it out!
This is a warning alert—check it out!
This is a info alert—check it out!
Link color
Use the .alert-link utility class to quickly provide matching colored links within any alert.
This is a primary alert with an example link. Give it a click if you like.
This is a success alert with an example link. Give it a click if you like.
This is a danger alert with an example link. Give it a click if you like.
This is a warning alert with an example link. Give it a click if you like.
This is a info alert with an example link. Give it a click if you like.
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.
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.