--- title: Alerts page-menu: base.alerts page-header: Alerts layout: default permalink: alerts.html ---
Wrap any text and an optional dismiss button in .alert
and one of the four contextual classes (e.g., .alert-success
) for basic alert messages.
Build on any alert by adding an optional icon.
{% include "ui/alert.html" type="success" show-icon=true %} {% include "ui/alert.html" type="warning" show-icon=true %} {% include "ui/alert.html" type="danger" show-icon=true %} {% include "ui/alert.html" type="info" show-icon=true %}Build on any alert by adding an optional .alert-dismissible
and close button.
Add a description to the alert to provide additional information.
{% include "ui/alert.html" type="success" show-description=true show-icon=true %} {% include "ui/alert.html" type="warning" show-description=true show-icon=true %} {% include "ui/alert.html" type="danger" show-description=true show-icon=true %} {% include "ui/alert.html" type="info" show-description=true show-icon=true %}