Alerts
# Intro
Alerts are displayed inside of the page content to notify the user of a status or action.
# Colors
The alert
class has color modifiers available with -primary
, -success
, -warning
, -danger
, -dark
, and -light
. The -light
modifier should only be used in the dark theme or inside darker elements.
# Shape
You can change the shape of alerts by using the border radius utility on the content
element.
# Outline
Alerts can be outlined using the -outline
modifier. Backgrounds will be transparent.
# Dismissible
Alerts can be dismissible by adding the -dismissible
modifier to the alert and both a checkbox
and label
above the content container. Dismissible alerts do not use any JavaScript.
# Fixed
Alerts can be fixed buy using the -fixed
modifier along with -top
or -bottom
to affix an alert to the top or bottom of the page.