Default alerts

Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages. Alerts don't have default classes, only base and modifier classes: choose from primary, success, info, warning or danger. Wrap any text and an optional dismiss button in .alert and one of the five contextual classes (e.g., .alert-success) for basic alert messages.

Examples

Primary alert

Morning! We're glad to see you again and wish you a nice day.

Secondary alert

Surprise! This is a super-duper nice looking alert with custom color.

Danger alert

Oh snap! Change a few things up and try submitting again.

Success alert

Well done! You successfully read this important alert message.

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.
Bordered alerts

All alerts have border by default and depending on use case and/or alert location, border can be removed or made stronger for a stronger appearance. Use border color helper classes to change border color if necessary. Use .alert-dismissible to add a close button functionality and .alert-link utility class to quickly provide matching colored links within any alert.

Examples

Primary alert

Morning! We're glad to see you again and wish you a nice day.

Danger alert

Oh snap! Change a few things up and try submitting again.

Success alert

Well done! You successfully read this important alert message.

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 color

Surprise! This is a super-duper nice looking alert with custom color.
Left icon

Alerts with left aligned block and inline icons. Block icon is a separate element that requires background color and text color utility classes, along with .alert-icon class that adds necessary styling. Alert container requires .alert-icon-[left|right] class depending on icon alignment. Inline icon inherits color from contextual alert class and doesn't require any additions.

Block icon

Primary alert

Morning! We're glad to see you again and wish you a nice day.

Danger alert

Oh snap! Change a few things up and try submitting again.

Success alert

Well done! You successfully read this important alert message.

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 color

Surprise! This is a super-duper nice looking alert with custom color.
Inline icon

Primary alert

Morning! We're glad to see you again and wish you a nice day.

Danger alert

Oh snap! Change a few things up and try submitting again.

Success alert

Well done! You successfully read this important alert message.

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 color

Surprise! This is a super-duper nice looking alert with custom color.
Right icon

Alerts with right aligned block and inline icons. Block icon is a separate element that requires background color and text color utility classes, along with .alert-icon class that adds necessary styling. Alert container requires .alert-icon-[left|right] class depending on icon alignment. Inline icon inherits color from contextual alert class and doesn't require any additions.

Block icon

Primary alert

Morning! We're glad to see you again and wish you a nice day.

Danger alert

Oh snap! Change a few things up and try submitting again.

Success alert

Well done! You successfully read this important alert message.

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 color

Surprise! This is a super-duper nice looking alert with custom color.
Inline icon

Primary alert

Morning! We're glad to see you again and wish you a nice day.

Danger alert

Oh snap! Change a few things up and try submitting again.

Success alert

Well done! You successfully read this important alert message.

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 color

Surprise! This is a super-duper nice looking alert with custom color.
Solid alerts

Examples of alerts with solid background color. This type of alerts are useful when you need to highlight some important information and bring more attention to it. To use solid alert styling, add contextual background color class to the base .alert container. Also alerts support custom color classes from a custom color system. To use a custom color, add .bg-* and .text-* classes to the base .alert class.

Examples

Primary alert

Morning! We're glad to see you again and wish you a nice day.

Danger alert

Oh snap! Change a few things up and try submitting again.

Success alert

Well done! You successfully read this important alert message.

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 color

Surprise! This is a super-duper nice looking alert with custom color.
Solid left styled

Solid alerts with left aligned block and inline icons. Solid alerts can also display contextual icon: block icon gets a semi-transparent black background color to make it more prominent, inline icon inherits all styles from alert container. Solid alerts perfectly suit for different kinds of notifications. To use solid alerts, simply add .bg-* and .text-* colors to .alert container.

Examples of solid alerts with left positioned icon. .

Block icon

Primary alert

Morning! We're glad to see you again and wish you a nice day.

Danger alert

Oh snap! Change a few things up and try submitting again.

Success alert

Well done! You successfully read this important alert message.

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 color

Surprise! This is a super-duper nice looking alert with custom color.
Inline icon

Primary alert

Morning! We're glad to see you again and wish you a nice day.

Danger alert

Oh snap! Change a few things up and try submitting again.

Success alert

Well done! You successfully read this important alert message.

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 color

Surprise! This is a super-duper nice looking alert with custom color.
Solid right styled

Solid alerts with right aligned block and inline icons. Solid alerts can also display contextual icon: block icon gets a semi-transparent black background color to make it more prominent, inline icon inherits all styles from alert container. Solid alerts perfectly suit for different kinds of notifications. To use solid alerts, simply add .bg-* and .text-* colors to .alert container.

Block icon

Primary alert

Morning! We're glad to see you again and wish you a nice day.

Danger alert

Oh snap! Change a few things up and try submitting again.

Success alert

Well done! You successfully read this important alert message.

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 color

Surprise! This is a super-duper nice looking alert with custom color.
Inline icon

Primary alert

Morning! We're glad to see you again and wish you a nice day.

Danger alert

Oh snap! Change a few things up and try submitting again.

Success alert

Well done! You successfully read this important alert message.

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 color

Surprise! This is a super-duper nice looking alert with custom color.
Rounded alerts

Examples of rounded alerts. By default, all alerts have 4px border radius. You can use our .rounded-* modifier classes to change the default look or override --alert-border-radius variable to apply your border radius to all alerts globally. It is recommended to add .text-truncate to alert container to make sure that alert message doesn't wrap and text is properly truncated.

Default alerts

Basic alert

Morning! We're glad to see you again and wish you a nice day.

Left block icon

Morning! We're glad to see you again and wish you a nice day.

Left inline icon

Morning! We're glad to see you again and wish you a nice day.

Right block icon

Morning! We're glad to see you again and wish you a nice day.

Right inline icon

Morning! We're glad to see you again and wish you a nice day.
Solid alerts

Basic alert

Morning! We're glad to see you again and wish you a nice day.

Left block icon

Morning! We're glad to see you again and wish you a nice day.

Left inline icon

Morning! We're glad to see you again and wish you a nice day.

Right block icon

Morning! We're glad to see you again and wish you a nice day.

Right inline icon

Morning! We're glad to see you again and wish you a nice day.
Custom colors

Apart from contextual colors, color system also contains 7 additional colors that can be used in context or out of it. Available colors are: dark, light, pink, purple, indigo, teal and yellow. To use, just add .alert-[color] class to .alert container. Additionally use .border-* and .text-* to adjust border and text color in light and dark alerts.

Examples

Dark alert

Morning! We're glad to see you again and wish you a nice day.
Morning! We're glad to see you again and wish you a nice day.

Pink color

Surprise! This is a super-duper nice looking alert with custom color.
Surprise! This is a super-duper nice looking alert with custom color.

Purple alert

Oh snap! Change a few things up and try submitting again.
Oh snap! Change a few things up and try submitting again.

Light alert

Morning! We're glad to see you again and wish you a nice day.
Morning! We're glad to see you again and wish you a nice day.

Indigo alert

Well done! You successfully read this important alert message.
Well done! You successfully read this important alert message.

Teal alert

Warning! Better check yourself, you're not looking too good.
Warning! Better check yourself, you're not looking too good.
Activity
New notifications
James has completed the task Submit documents from Onboarding list
2 hours ago
Margo has added 4 users to Customer enablement channel
3 hours ago
Subscription #466573 from 10.12.2021 has been cancelled. Refund case #4492 created
4 hours ago
Older notifications
Nick requested your feedback and approval in support request #458
3 days ago
Mike added 1 new file(s) to Product management project
new_contract.pdf
112KB
1 day ago
All hands meeting will take place coming Thursday at 13:45.
2 days ago
Christine commented on your community post from 10.12.2021
2 days ago
HR department requested you to complete internal survey by Friday
3 days ago
Loading...
Demo configuration
Color mode
Direction
Layouts
Purchase Limitless