Alerts

Basic Alerts


<div class="alert alert-primary" role="alert">
    A simple primary alert—check it out!
</div>
<div class="alert alert-secondary" role="alert">
    A simple secondary alert—check it out!
</div>
<div class="alert alert-success" role="alert">
    A simple success alert—check it out!
</div>
<div class="alert alert-danger" role="alert">
    A simple danger alert—check it out!
</div>
<div class="alert alert-warning" role="alert">
    A simple warning alert—check it out!
</div>
<div class="alert alert-info" role="alert">
    A simple info alert—check it out!
</div>
<div class="alert alert-light" role="alert">
    A simple light alert—check it out!
</div>
<div class="alert alert-dark mb-0" role="alert">
    A simple dark alert—check it out!
</div>

BG Basic Alerts


<div class="alert alert-primary bg-primary text-white" role="alert">
    A simple primary alert—check it out!
</div>
<div class="alert alert-secondary bg-secondary text-white" role="alert">
    A simple secondary alert—check it out!
</div>
<div class="alert alert-success bg-success text-white" role="alert">
    A simple success alert—check it out!
</div>
<div class="alert alert-danger bg-danger text-white" role="alert">
    A simple danger alert—check it out!
</div>
<div class="alert alert-warning bg-warning text-white" role="alert">
    A simple warning alert—check it out!
</div>
<div class="alert alert-info bg-info text-white" role="alert">
    A simple info alert—check it out!
</div>
<div class="alert alert-light bg-light text-dark" role="alert">
    A simple light alert—check it out!
</div>
<div class="alert alert-dark mb-0 bg-dark text-white" role="alert">
    A simple dark alert—check it out!
</div>

Outline Alerts


<div class="alert alert-primary bg-transparent text-primary" role="alert">
    A simple primary alert—check it out!
</div>
<div class="alert alert-secondary bg-transparent text-secondary" role="alert">
    A simple secondary alert—check it out!
</div>
<div class="alert alert-success bg-transparent text-success" role="alert">
    A simple success alert—check it out!
</div>
<div class="alert alert-danger bg-transparent text-danger" role="alert">
    A simple danger alert—check it out!
</div>
<div class="alert alert-warning bg-transparent text-warning" role="alert">
    A simple warning alert—check it out!
</div>
<div class="alert alert-info bg-transparent text-info" role="alert">
    A simple info alert—check it out!
</div>
<div class="alert alert-light bg-transparent text-light" role="alert">
    A simple light alert—check it out!
</div>
<div class="alert alert-dark mb-0 bg-transparent text-dark" role="alert">
    A simple dark alert—check it out!
</div>

Outline Alerts


<div class="alert alert-primary text-primary" role="alert">
    A simple primary alert with <a href="#" class="fw-semibold">an example link</a>. Give it a click if you like.
</div>
<div class="alert alert-secondary text-secondary" role="alert">
    A simple secondary alert with <a href="#" class="fw-semibold">an example link</a>. Give it a click if you like.
</div>
<div class="alert alert-success text-success" role="alert">
    A simple success alert with <a href="#" class="fw-semibold">an example link</a>. Give it a click if you like.
</div>
<div class="alert alert-danger text-danger" role="alert">
    A simple danger alert with <a href="#" class="fw-semibold">an example link</a>. Give it a click if you like.
</div>
<div class="alert alert-warning text-warning" role="alert">
    A simple warning alert with <a href="#" class="fw-semibold">an example link</a>. Give it a click if you like.
</div>
<div class="alert alert-info text-info" role="alert">
    A simple info alert with <a href="#" class="fw-semibold">an example link</a>. Give it a click if you like.
</div>
<div class="alert alert-light text-light" role="alert">
    A simple light alert with <a href="#" class="fw-semibold">an example link</a>. Give it a click if you like.
</div>
<div class="alert alert-dark text-dark mb-0" role="alert">
    A simple dark alert with <a href="#" class="fw-semibold">an example link</a>. Give it a click if you like.
</div>

Alerts with Icon


<div class="alert alert-primary text-primary" role="alert">
    <i class="ri-home-7-line fs-18 me-1"></i>
    A simple primary alert—check it out!
</div>
<div class="alert alert-secondary text-secondary" role="alert">
    <i class="ri-star-line fs-18 me-1"></i>
    A simple secondary alert—check it out!
</div>
<div class="alert alert-success text-success" role="alert">
    <i class="ri-play-circle-line fs-18 me-1"></i>
    A simple success alert—check it out!
</div>
<div class="alert alert-danger text-danger" role="alert">
    <i class="ri-service-line fs-18 me-1"></i>
    A simple danger alert—check it out!
</div>
<div class="alert alert-warning text-warning" role="alert">
    <i class="ri-edit-box-line fs-18 me-1"></i>
    A simple warning alert—check it out!
</div>
<div class="alert alert-info text-info" role="alert">
    <i class="ri-table-line fs-18 me-1"></i>
    A simple info alert—check it out!
</div>
<div class="alert alert-light text-light" role="alert">
    <i class="ri-code-s-slash-fill fs-18 me-1"></i>
    A simple light alert—check it out!
</div>
<div class="alert alert-dark text-dark mb-0" role="alert">
    <i class="ri-html5-line fs-18 me-1"></i>
    A simple dark alert—check it out!
</div>

BG Alerts with Icon


<div class="alert alert-primary bg-primary text-white" role="alert">
    <i class="ri-home-7-line fs-18 me-1"></i>
    A simple primary alert—check it out!
</div>
<div class="alert alert-secondary bg-secondary text-white" role="alert">
    <i class="ri-star-line fs-18 me-1"></i>
    A simple secondary alert—check it out!
</div>
<div class="alert alert-success bg-success text-white" role="alert">
    <i class="ri-play-circle-line fs-18 me-1"></i>
    A simple success alert—check it out!
</div>
<div class="alert alert-danger bg-danger text-white" role="alert">
    <i class="ri-service-line fs-18 me-1"></i>
    A simple danger alert—check it out!
</div>
<div class="alert alert-warning bg-warning text-white" role="alert">
    <i class="ri-edit-box-line fs-18 me-1"></i>
    A simple warning alert—check it out!
</div>
<div class="alert alert-info bg-info text-white" role="alert">
    <i class="ri-table-line fs-18 me-1"></i>
    A simple info alert—check it out!
</div>
<div class="alert alert-light bg-light text-white" role="alert">
    <i class="ri-code-s-slash-fill fs-18 me-1"></i>
    A simple light alert—check it out!
</div>
<div class="alert alert-dark bg-dark text-white mb-0" role="alert">
    <i class="ri-html5-line fs-18 me-1"></i>
    A simple dark alert—check it out!
</div>

Dismissing Alerts


<div class="alert alert-primary alert-dismissible" role="alert">
    A simple primary alert—check it out!
    <button type="button" class="btn-close shadow-none" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<div class="alert alert-secondary alert-dismissible" role="alert">
    A simple secondary alert—check it out!
    <button type="button" class="btn-close shadow-none" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<div class="alert alert-success alert-dismissible" role="alert">
    A simple success alert—check it out!
    <button type="button" class="btn-close shadow-none" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<div class="alert alert-danger alert-dismissible" role="alert">
    A simple danger alert—check it out!
    <button type="button" class="btn-close shadow-none" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<div class="alert alert-warning alert-dismissible" role="alert">
    A simple warning alert—check it out!
    <button type="button" class="btn-close shadow-none" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<div class="alert alert-info alert-dismissible" role="alert">
    A simple info alert—check it out!
    <button type="button" class="btn-close shadow-none" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<div class="alert alert-light alert-dismissible" role="alert">
    A simple light alert—check it out!
    <button type="button" class="btn-close shadow-none" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<div class="alert alert-dark alert-dismissible" role="alert">
    A simple dark alert—check it out!
    <button type="button" class="btn-close shadow-none" data-bs-dismiss="alert" aria-label="Close"></button>
</div>

Additional Content Alerts


<div class="alert alert-success" role="alert">
    <h4 class="alert-heading">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>
    <p class="mb-0">Whenever you need to, be sure to use margin utilities to keep things nice and tidy.</p>
</div>