Alerts

Basic Alerts

Alerts are available for any length of text, as well as an optional dismiss button. Add .alert.alert-COLOR classes for alert with all theme colors.

Primary Alert
Secondary Alert
Success Alert
Danger Alert
Warning Alert
Info Alert
Light Alert
Dark Alert

Dismissible Alerts

Add a dismiss button and the .alert-dismissibleclass, which adds extra padding to the right of the alert and positions the .closebutton.

Primary Alert
Secondary Alert
Success Alert
Danger Alert
Warning Alert
Info Alert
Light Alert
Dark Alert

Alerts with Links

Add .alert-linkclass to add links to alerts.

Primary Alert
Secondary Alert
Success Alert
Danger Alert
Warning Alert
Info Alert
Light Alert
Dark Alert

Alerts with No Border

Add .border-0class along with .alertclass for alerts with no borders.

Primary Alert
Secondary Alert
Success Alert
Danger Alert
Warning Alert
Info Alert
Light Alert
Dark Alert

Alerts with icons

To add left/right icons to the alert, use class .alert-icon-leftor alert-icon-right as required.

Primary Alert
Success Alert
Danger Alert
Warning Alert
Info Alert
Custom Alert

Solid Alerts

To use solid alert, add background color class to the .alertcontainer class. Alerts also support custom color classes from theme color system. To use a custom color, add .bg-*to the .alertclass.

Primary Alert
Success Alert
Danger Alert
Warning Alert
Info Alert
Custom Alert

Solid Alerts with icons

To use solid alert with icons, add class .alert-icon-leftor alert-icon-right to .alertcontainer class.

Primary Alert
Success Alert
Danger Alert
Warning Alert
Info Alert
Custom Alert

Alerts with Additional Content

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

Primary Alert
No Border Success Alert
Solid Danger Alert
Warning Alert
No Border Info Alert
Solid Custom Alert