Basic Alerts

Alert is a component to provide contextual feedback messages for user. Bootstrap provides styles for the following types : 'success', 'info', 'warning', 'danger', 'primary', 'secondary', 'light' and 'dark'

Primary Alert
Good Morning! Start your day with some alerts.
Secondary Alert
Hello! This is secondary alert - check it out.
Success Alert
Well done! You successfully read this important alert message.
Danger Alert
Oh snap! Change a few things up and submit again.
Warning Alert
Warning! Better check yourself, you're not looking too good.
Info Alert
Heads up! This alert needs your attention, but it's not super important.
Light Alert
Hello! This is light alert - check it out.
Dark Alert
Hello! This is dark alert - check it out.
Dismissible Alerts

To add dismiss button use input [dismissible]="true" which adds close (X) button to the right.

Primary Alert
Good Morning! Start your day with some alerts.
Secondary Alert
Hello! This is secondary alert - check it out.
Success Alert
Well done! You successfully read this important alert message.
Danger Alert
Oh snap! Change a few things up and submit again.
Warning Alert
Warning! Better check yourself, you're not looking too good.
Info Alert
Heads up! This alert needs your attention, but it's not super important.
Light Alert
Hello! This is light alert - check it out.
Dark Alert
Hello! This is dark alert - check it out.

Alerts with Links

Add .alert-link class to add links to alerts. And use input [routerLink]="" to add url link.

Primary Alert
Good Morning! Start your day with some alerts.
Secondary Alert
Hello! This is secondary alert - check it out.
Success Alert
Well done! You successfully read this important alert message.
Danger Alert
Oh snap! Change a few things up and submit again.
Warning Alert
Warning! Better check yourself, you're not looking too good.
Info Alert
Heads up! This alert needs your attention, but it's not super important.
Light Alert
Hello! This is light alert - check it out.
Dark Alert
Hello! This is dark alert - check it out.

Alerts with No Border

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

Primary Alert
Good Morning! Start your day with some alerts.
Secondary Alert
Hello! This is secondary alert - check it out.
Success Alert
Well done! You successfully read this important alert message.
Danger Alert
Oh snap! Change a few things up and submit again.
Warning Alert
Warning! Better check yourself, you're not looking too good.
Info Alert
Heads up! This alert needs your attention, but it's not super important.
Light Alert
Hello! This is light alert - check it out.
Dark Alert
Hello! This is dark alert - check it out.

Alerts with icons

To add left/right icons to the alert, use class .alert-icon-left or alert-icon-right with icon class .alert-icon.

Primary Alert
Good Morning! Start your day with some alerts.
Success Alert
Well done! You successfully read this important alert message.
Danger Alert
Oh snap! Change a few things up and submit again.
Warning Alert
Warning! Better check yourself, you're not looking too good.
Info Alert
Heads up! This alert needs your attention, but it's not super important.
Custom Alert
Great! You are using some gorgeous custom colors.

Alerts with icons & Arrow

To add left/right icons with arrow to the alert, use class .alert-arrow-left or alert-arrow-right as required.

Primary Alert
Good Morning! Start your day with some alerts.
Success Alert
Well done! You successfully read this important alert message.
Danger Alert
Oh snap! Change a few things up and submit again.
Warning Alert
Warning! Better check yourself, you're not looking too good.
Info Alert
Heads up! This alert needs your attention, but it's not super important.
Custom Alert
Great! You are using some gorgeous custom colors.

Solid Alerts

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

Primary Alert
Good Morning! Start your day with some alerts.
Success Alert
Well done! You successfully read this important alert message.
Danger Alert
Oh snap! Change a few things up and submit again.
Warning Alert
Warning! Better check yourself, you're not looking too good.
Info Alert
Heads up! This alert needs your attention, but it's not super important.
Custom Alert
Great! You are using some gorgeous custom colors.

Solid Alerts with icons

To use solid alert with icons, add class .alert-icon-left or alert-icon-right to .alert container class.

Primary Alert
Good Morning! Start your day with some alerts.
Success Alert
Well done! You successfully read this important alert message.
Danger Alert
Oh snap! Change a few things up and submit again.
Warning Alert
Warning! Better check yourself, you're not looking too good.
Info Alert
Heads up! This alert needs your attention, but it's not super important.
Custom Alert
Great! You are using some gorgeous custom colors.

Solid Alerts with icons & arrow

To use solid alert with icons, add class .alert-arrow-left or alert-arrow-right with icon classes to .alert container class.

Primary Alert
Good Morning! Start your day with some alerts.
Success Alert
Well done! You successfully read this important alert message.
Danger Alert
Oh snap! Change a few things up and submit again.
Warning Alert
Warning! Better check yourself, you're not looking too good.
Info Alert
Heads up! This alert needs your attention, but it's not super important.
Custom Alert
Great! You are using some gorgeous custom colors.

Round Alerts

To use round alert, add class .round to .alert container class.

Primary Alert
Good Morning! Start your day with some alerts.
Success Alert
Well done! You successfully read this important alert message.
Danger Alert
Oh snap! Change a few things up and submit again.
Warning Alert
Warning! Better check yourself, you're not looking too good.
Info Alert
Heads up! This alert needs your attention, but it's not super important.
Custom Alert
Great! You are using some gorgeous custom colors.

Round Alerts with icons

To use round alert, add class .round to .alert container class. To use Icons, add class .alert-icon-left or alert-icon-right to .alert container class.

Primary Alert
Good Morning! Start your day with some alerts.
Success Alert
Well done! You successfully read this important alert message.
Danger Alert
Oh snap! Change a few things up and submit again.
Warning Alert
Warning! Better check yourself, you're not looking too good.
Info Alert
Heads up! This alert needs your attention, but it's not super important.
Custom Alert
Great! You are using some gorgeous custom colors.

Round Alerts with icons & arrow

To use round alert, add class .round to .alert container class. To add left/right icons with arrow to the alert, use class .alert-arrow-left or alert-arrow-right with icon classes.

Primary Alert
Good Morning! Start your day with some alerts.
Success Alert
Well done! You successfully read this important alert message.
Danger Alert
Oh snap! Change a few things up and submit again.
Warning Alert
Warning! Better check yourself, you're not looking too good.
Info Alert
Heads up! This alert needs your attention, but it's not super important.
Custom Alert
Great! You are using some gorgeous custom colors.

Alerts with Additional Content

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

Primary Alert

Good Morning!

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.

No Border Success Alert

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.

Solid Danger Alert

Oh snap!

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.

Warning Alert

Warning!

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.

No Border Info Alert

Heads up!

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.

Solid Custom Alert

Great!

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.