Alerts

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

Alerts are available in 5 Types : primary,success,danger,dark,warning. To use the alerts add .alert class name and add alert type according to color.

A Simple Primary Alert
A Simple Success Alert
A Simple Danger Alert
A Simple Dark Alert
A Simple Warning Alert

Alerts With Icons and text link

Alerts are available with icons and can have text link .

warning A Simple Primary Alert
check A Simple Success Alert
error This is Danger alert with icons and text link

Example of Alert bar with close button

Alert can have cross icons to close the alert. Here we are using button as icons, Check out html and vanilla JS code below.

A Simple Primary alert with close button

Additional Contents

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

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.