Alerts
Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.
Examples
Alerts are available for any length of text, as well as an optional dismiss button.
This is a primary alert—check it out!
This is a secondary alert—check it out!
This is a success alert—check it out!
This is a danger alert—check it out!
This is a warning alert—check it out!
This is a info alert—check it out!
This is a light alert—check it out!
This is a dark alert—check it out!
[
{
"block": "alert",
"mods": {
"primary": true
},
"content": "This is a primary alert—check it out!"
},
{
"block": "alert",
"mods": {
"secondary": true
},
"content": "This is a secondary alert—check it out!"
},
{
"block": "alert",
"mods": {
"success": true
},
"content": "This is a success alert—check it out!"
},
{
"block": "alert",
"mods": {
"danger": true
},
"content": "This is a danger alert—check it out!"
},
{
"block": "alert",
"mods": {
"warning": true
},
"content": "This is a warning alert—check it out!"
},
{
"block": "alert",
"mods": {
"info": true
},
"content": "This is a info alert—check it out!"
},
{
"block": "alert",
"mods": {
"light": true
},
"content": "This is a light alert—check it out!"
},
{
"block": "alert",
"mods": {
"dark": true
},
"content": "This is a dark alert—check it out!"
}
]
Link color
Use the .alert-link
utility class to quickly provide matching colored links within any alert.
This is a primary alert with an example link. Give it a click if you like.
This is a primary alert with an example link. Give it a click if you like.
This is a primary alert with an example link. Give it a click if you like.
This is a primary alert with an example link. Give it a click if you like.
This is a primary alert with an example link. Give it a click if you like.
This is a primary alert with an example link. Give it a click if you like.
This is a primary alert with an example link. Give it a click if you like.
This is a primary alert with an example link. Give it a click if you like.
[
{
"block": "alert",
"mods": {
"primary": true
},
"content": [
"This is a primary alert with ",
{
"elem": "link",
"url": "#",
"content": "an example link."
},
" Give it a click if you like."
]
},
{
"block": "alert",
"mods": {
"secondary": true
},
"content": [
"This is a primary alert with ",
{
"elem": "link",
"url": "#",
"content": "an example link."
},
" Give it a click if you like."
]
},
{
"block": "alert",
"mods": {
"success": true
},
"content": [
"This is a primary alert with ",
{
"elem": "link",
"url": "#",
"content": "an example link."
},
" Give it a click if you like."
]
},
{
"block": "alert",
"mods": {
"danger": true
},
"content": [
"This is a primary alert with ",
{
"elem": "link",
"url": "#",
"content": "an example link."
},
" Give it a click if you like."
]
},
{
"block": "alert",
"mods": {
"warning": true
},
"content": [
"This is a primary alert with ",
{
"elem": "link",
"url": "#",
"content": "an example link."
},
" Give it a click if you like."
]
},
{
"block": "alert",
"mods": {
"info": true
},
"content": [
"This is a primary alert with ",
{
"elem": "link",
"url": "#",
"content": "an example link."
},
" Give it a click if you like."
]
},
{
"block": "alert",
"mods": {
"light": true
},
"content": [
"This is a primary alert with ",
{
"elem": "link",
"url": "#",
"content": "an example link."
},
" Give it a click if you like."
]
},
{
"block": "alert",
"mods": {
"dark": true
},
"content": [
"This is a primary alert with ",
{
"elem": "link",
"url": "#",
"content": "an example link."
},
" Give it a click if you like."
]
}
]
Dismissing
Holy guacamole! You should check in on some of those fields below.
{
"block": "alert",
"mods": {
"warning": true,
"dismissible": true
},
"content": "Holy guacamole! You should check in on some of those fields below."
}