Badges and Spinners
Badges are small labels or counters. Spinners show loading. Use .badge with a bg-* class and .spinner-border for a loader.
Example
<button class="btn btn-primary">Inbox <span class="badge text-bg-light">4</span></button>
<div class="spinner-border text-primary" role="status">
<span class="visually-hidden">Loading...</span>
</div>Exercise
Loading spinner class.
spinner-Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.