Alert
Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.
Alerts on BootstrapAlert Soft Examples
<div class="alert alert-soft-primary" role="alert">A simple primary alert—check it out!</div>
<div class="alert alert-soft-success" role="alert">A simple primary alert—check it out!</div>
<div class="alert alert-soft-danger" role="alert">A simple primary alert—check it out!</div>
<div class="alert alert-soft-warning" role="alert">A simple primary alert—check it out!</div>
<div class="alert alert-soft-info" role="alert">A simple primary alert—check it out!</div>
A simple primary alert—check it out!
A simple primary alert—check it out!
A simple primary alert—check it out!
A simple primary alert—check it out!
A simple primary alert—check it out!
Alert Outline Examples
<div class="alert alert-outline-primary" role="alert">A simple primary alert—check it out!</div>
<div class="alert alert-outline-success" role="alert">A simple primary alert—check it out!</div>
<div class="alert alert-outline-danger" role="alert">A simple primary alert—check it out!</div>
<div class="alert alert-outline-warning" role="alert">A simple primary alert—check it out!</div>
<div class="alert alert-outline-info" role="alert">A simple primary alert—check it out!</div>
A simple primary alert—check it out!
A simple primary alert—check it out!
A simple primary alert—check it out!
A simple primary alert—check it out!
A simple primary alert—check it out!
Phoenix Alert Examples
<div class="alert alert-phoenix-primary" role="alert">A simple primary alert—check it out!</div>
<div class="alert alert-phoenix-success" role="alert">A simple primary alert—check it out!</div>
<div class="alert alert-phoenix-danger" role="alert">A simple primary alert—check it out!</div>
<div class="alert alert-phoenix-warning" role="alert">A simple primary alert—check it out!</div>
<div class="alert alert-phoenix-info" role="alert">A simple primary alert—check it out!</div>
A simple primary alert—check it out!
A simple primary alert—check it out!
A simple primary alert—check it out!
A simple primary alert—check it out!
A simple primary alert—check it out!
Solid Alert Examples
<div class="alert alert-primary" role="alert">A simple primary alert—check it out!</div>
<div class="alert alert-success" role="alert">A simple primary alert—check it out!</div>
<div class="alert alert-danger" role="alert">A simple primary alert—check it out!</div>
<div class="alert alert-warning" role="alert">A simple primary alert—check it out!</div>
<div class="alert alert-info" role="alert">A simple primary alert—check it out!</div>
A simple primary alert—check it out!
A simple primary alert—check it out!
A simple primary alert—check it out!
A simple primary alert—check it out!
A simple primary alert—check it out!
Alerts with icon
<div class="alert alert-outline-warning d-flex align-items-center" role="alert">
<span class="fas fa-info-circle text-warning fs-3 me-3"></span>
<p class="mb-0 flex-1">A simple primary alert—check it out!</p>
<button class="btn-close" type="button" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<div class="alert alert-outline-success d-flex align-items-center" role="alert">
<span class="fas fa-check-circle text-success fs-3 me-3"></span>
<p class="mb-0 flex-1">A simple primary alert—check it out!</p>
<button class="btn-close" type="button" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<div class="alert alert-outline-danger d-flex align-items-center" role="alert">
<span class="fas fa-times-circle text-danger fs-3 me-3"></span>
<p class="mb-0 flex-1">A simple danger alert—check it out!</p>
<button class="btn-close" type="button" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
A simple primary alert—check it out!
A simple primary alert—check it out!
A simple danger alert—check it out!
Additional Content
<div class="alert alert-soft-success" role="alert">
<h4 class="alert-heading fw-semi-bold">Well done!</h4>
<p>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.</p>
<hr class="bg-300" />
<p class="mb-0">Whenever you need to, be sure to use margin utilities to keep things nice and tidy.</p>
</div>
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.
Dismissing
<div class="alert alert-soft-warning alert-dismissible fade show" role="alert">
<strong>Holy guacamole!</strong> You should check in on some of those fields below.
<button class="btn-close" type="button" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
Holy guacamole! You should check in on some of those fields below.