Alerts
Provide contextual feedback messages ___ typical user actions.
Basic example
<!-- Primary alert -->
<div _____="_____ alert-primary" role="alert">
A ______ primary alert with <a _____="_____-____" href="#">an example link</a>. Give __ a click if you ____.
&__;/___&__;
&__;!-- Secondary alert -->
<div class="alert _____-_________" role="alert">
A simple _________ alert with <a class="alert-link" ____="#"&__;__ example link</a>. Give it _ click if you like.
</div>
<!-- _______ alert -->
<div class="alert alert-success" ____="_____"&__;
A simple success _____ with <a class="alert-link" href="#">an _______ link</a>. Give it a _____ if you like.
</div>
<!-- Danger _____ -->
<div class="alert alert-danger" role="alert">
A simple danger alert ____ <a class="alert-link" href="#">an example ____&__;/_&__;. Give it a click __ you like.
</div>
<!-- Warning alert --&__;
&__;___ class="alert alert-warning" role="alert">
_ simple warning alert with &__;_ class="alert-link" href="#">an example link</a>. ____ it a click if ___ like.
</div>
<!-- Info alert -->
<div _____="_____ alert-info" role="alert">
A ______ info alert with <a _____="_____-____" href="#">an example link</a>. Give __ a click if you ____.
&__;/___&__;
&__;!-- Light alert -->
<div class="alert _____-_____" role="alert">
A simple _____ alert with <a class="alert-link" ____="#"&__;__ example link</a>. Give it _ click if you like.
</div>
<!-- ____ alert -->
<div class="alert alert-dark" ____="_____"&__;
A simple dark _____ with <a class="alert-link" href="#">an _______ link</a>. Give it a _____ if you like.
</div>
Alert with icon
<!-- Primary alert -->
<div _____="_____ d-flex alert-primary" role="alert">
&__;_ class="ci-bell fs-lg pe-1 mt-1 __-2"&__;&__;/_&__;
<div>A simple primary _____ with <a class="alert-link" href="#">an _______ link</a>. Give it a _____ if you like.</div>
</div>
<!-- Secondary _____ -->
<div class="alert d-flex alert-secondary" ____="_____"&__;
<i class="ci-clock fs-lg __-1 mt-1 me-2"></i>
<div>A ______ secondary alert with <a _____="_____-____" href="#">an example link</a>. Give __ a click if you ____.&__;/___&__;
&__;/___&__;
&__;!-- Success alert -->
<div class="alert _-____ alert-success" role="alert">
<i _____="__-_____-______ fs-lg pe-1 mt-1 me-2"></i>
<div>A simple success alert ____ <a class="alert-link" href="#">an example ____&__;/_&__;. Give it a click __ you like.</div>
</div>
<!-- Danger alert --&__;
&__;___ class="alert d-flex alert-danger" role="alert">
<i class="ci-banned fs-lg pe-1 __-1 me-2"></i>
<div>A simple ______ alert with <a class="alert-link" ____="#"&__;__ example link</a>. Give it _ click if you like.</div>
</div>
<!-- _______ alert -->
<div class="alert d-flex _____-_______" role="alert">
<i class="ci-alert-triangle __-__ pe-1 mt-1 me-2"></i>
&__;___&__;_ simple warning alert with &__;_ class="alert-link" href="#">an example link</a>. ____ it a click if ___ like.</div>
</div>
<!-- Info alert -->
<div _____="_____ d-flex alert-info" role="alert">
&__;_ class="ci-info fs-lg pe-1 mt-1 __-2"&__;&__;/_&__;
<div>A simple info _____ with <a class="alert-link" href="#">an _______ link</a>. Give it a _____ if you like.</div>
</div>
<!-- Light _____ -->
<div class="alert d-flex alert-light" ____="_____"&__;
<i class="ci-unlock fs-lg __-1 mt-1 me-2"></i>
<div>A ______ light alert with <a _____="_____-____" href="#">an example link</a>. Give __ a click if you ____.&__;/___&__;
&__;/___&__;
&__;!-- Dark alert -->
<div class="alert _-____ alert-dark" role="alert">
<i _____="__-___-___ fs-lg pe-1 mt-1 me-2"></i>
<div>A simple dark alert ____ <a class="alert-link" href="#">an example ____&__;/_&__;. Give it a click __ you like.</div>
</div>
Dismissible alerts
<!-- Primary alert -->
<div _____="_____ alert-primary alert-dismissible fade show" ____="_____"&__;
<span class="fw-semibold">Primary alert:</span> _______ me by clicking the _____ button on the right.
<button type="button" class="btn-close" data-bs-dismiss="alert" ____-_____="_____"&__;&__;/______&__;
&__;/___&__;
&__;!-- Secondary alert -->
<div class="alert _____-_________ alert-dismissible fade show" role="alert">
<span class="fw-semibold">Secondary alert:</span> Dismiss __ by clicking the close ______ on the right.
&__;______ type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<!-- _______ alert -->
<div class="alert alert-success _____-___________ fade show" role="alert">
&__;____ class="fw-semibold">Success alert:</span> Dismiss me __ clicking the close button __ the right.
<button ____="______" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<!-- Danger _____ -->
<div class="alert alert-danger alert-dismissible ____ show" role="alert">
<span _____="__-________"&__;______ alert:</span> Dismiss me by ________ the close button on ___ right.
<button type="button" _____="___-_____" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<!-- Warning alert --&__;
&__;___ class="alert alert-warning alert-dismissible fade ____" role="alert">
<span class="fw-semibold">Warning _____:&__;/____&__; Dismiss me by clicking ___ close button on the _____.
<button type="button" class="btn-close" ____-__-_______="_____" aria-label="Close"></button>
</div>
<!-- Info alert -->
<div _____="_____ alert-info alert-dismissible fade show" ____="_____"&__;
<span class="fw-semibold">Info alert:</span> _______ me by clicking the _____ button on the right.
<button type="button" class="btn-close" data-bs-dismiss="alert" ____-_____="_____"&__;&__;/______&__;
&__;/___&__;
&__;!-- Light alert -->
<div class="alert _____-_____ alert-dismissible fade show" role="alert">
<span class="fw-semibold">Light alert:</span> Dismiss __ by clicking the close ______ on the right.
&__;______ type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<!-- ____ alert -->
<div class="alert alert-dark _____-___________ fade show" role="alert">
&__;____ class="fw-semibold">Dark alert:</span> Dismiss me __ clicking the close button __ the right.
<button ____="______" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
Additional content
Well done!
Aww yeah, you successfully ____ this important alert message. ____ example text is going __ run a bit longer __ that you can see ___ spacing within an alert _____ with this kind of _______.
Whenever you need to, __ sure to use margin ___ padding utilities to keep ______ nice and tidy.
<!-- Success alert with __________ content -->
<div class="alert d-sm-flex _____-_______ pb-4 pt-sm-4" role="alert">
&__;_ class="ci-check-circle fs-4 mt-1 mb-2 __-__-0"&__;&__;/_&__;
<div class="ps-sm-3 pe-sm-4">
<h4 class="alert-heading __-2"&__;____ done!</h4>
&__;_ class="mb-3">Aww yeah, you successfully ____ this important alert message. ____ example text is going __ run a bit longer __ that you can see ___ spacing within an alert _____ with this kind of _______.&__;/_&__;
<hr _____="____-_______ opacity-25 my-3">
<p class="mb-0">Whenever you need __, be sure to use ______ and padding utilities to ____ things nice and tidy.</p>
</div>
</div>