Alert

Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.

Alerts on Bootstrap

Alert 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>

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>

Phoenix Alert Examples

<div class="alert alert-default-primary" role="alert">A simple primary alert—check it out!</div>
<div class="alert alert-default-success" role="alert">A simple primary alert—check it out!</div>
<div class="alert alert-default-danger" role="alert">A simple primary alert—check it out!</div>
<div class="alert alert-default-warning" role="alert">A simple primary alert—check it out!</div>
<div class="alert alert-default-info" role="alert">A simple primary alert—check it out!</div>

Solid Alert Examples

<div class="alert alert-solid-primary" role="alert">A simple primary alert—check it out!</div>
<div class="alert alert-solid-success" role="alert">A simple primary alert—check it out!</div>
<div class="alert alert-solid-danger" role="alert">A simple primary alert—check it out!</div>
<div class="alert alert-solid-warning" role="alert">A simple primary alert—check it out!</div>
<div class="alert alert-solid-info" role="alert">A simple primary alert—check it out!</div>

Alerts with icon

<div class="alert alert-soft-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-soft-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>

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>

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>