Spinners

Indicate the loading state of a component or page.

Bootstrap docs

Border spinner

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
<!-- Dark (default) spinner -->
<div class="spinner-border" role="status">
  <span class="sr-only">Loading...</span>
</div>

<!-- Gray spinner -->
<div class="spinner-border text-muted" role="status">
  <span class="sr-only">Loading...</span>
</div>

<!-- Primary spinner -->
<div class="spinner-border text-primary" role="status">
  <span class="sr-only">Loading...</span>
</div>

<!-- Secondary spinner -->
<div class="spinner-border text-secondary" role="status">
  <span class="sr-only">Loading...</span>
</div>

<!-- Success spinner -->
<div class="spinner-border text-success" role="status">
  <span class="sr-only">Loading...</span>
</div>

<!-- Danger spinner -->
<div class="spinner-border text-danger" role="status">
  <span class="sr-only">Loading...</span>
</div>

<!-- Warning spinner -->
<div class="spinner-border text-warning" role="status">
  <span class="sr-only">Loading...</span>
</div>

<!-- Info spinner -->
<div class="spinner-border text-info" role="status">
  <span class="sr-only">Loading...</span>
</div>

<!-- Light spinner -->
<div class="spinner-border text-light" role="status">
  <span class="sr-only">Loading...</span>
</div>
// Dark (default) spinner
div(role="status").spinner-border
  span.sr-only
    | Loading...

// Gray spinner
div(role="status").spinner-border.text-muted
  span.sr-only
    | Loading...

// Primary spinner
div(role="status").spinner-border.text-primary
  span.sr-only
    | Loading...

// Secondary spinner
div(role="status").spinner-border.text-secondary
  span.sr-only
    | Loading...

// Success spinner
div(role="status").spinner-border.text-success
  span.sr-only
    | Loading...

// Danger spinner
div(role="status").spinner-border.text-danger
  span.sr-only
    | Loading...

// Warning spinner
div(role="status").spinner-border.text-warning
  span.sr-only
    | Loading...

// Info spinner
div(role="status").spinner-border.text-info
  span.sr-only
    | Loading...

// Light spinner
div(role="status").spinner-border.text-light
  span.sr-only
    | Loading...

Growing spinner

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
<!-- Dark (default) spinner -->
<div class="spinner-grow" role="status">
  <span class="sr-only">Loading...</span>
</div>

<!-- Gray spinner -->
<div class="spinner-grow text-muted" role="status">
  <span class="sr-only">Loading...</span>
</div>

<!-- Primary spinner -->
<div class="spinner-grow text-primary" role="status">
  <span class="sr-only">Loading...</span>
</div>

<!-- Secondary spinner -->
<div class="spinner-grow text-secondary" role="status">
  <span class="sr-only">Loading...</span>
</div>

<!-- Success spinner -->
<div class="spinner-grow text-success" role="status">
  <span class="sr-only">Loading...</span>
</div>

<!-- Danger spinner -->
<div class="spinner-grow text-danger" role="status">
  <span class="sr-only">Loading...</span>
</div>

<!-- Warning spinner -->
<div class="spinner-grow text-warning" role="status">
  <span class="sr-only">Loading...</span>
</div>

<!-- Info spinner -->
<div class="spinner-grow text-info" role="status">
  <span class="sr-only">Loading...</span>
</div>

<!-- Light spinner -->
<div class="spinner-grow text-light" role="status">
  <span class="sr-only">Loading...</span>
</div>
// Dark (default) spinner
div(role="status").spinner-grow
  span.sr-only
    | Loading...

// Gray spinner
div(role="status").spinner-grow.text-muted
  span.sr-only
    | Loading...

// Primary spinner
div(role="status").spinner-grow.text-primary
  span.sr-only
    | Loading...

// Secondary spinner
div(role="status").spinner-grow.text-secondary
  span.sr-only
    | Loading...

// Success spinner
div(role="status").spinner-grow.text-success
  span.sr-only
    | Loading...

// Danger spinner
div(role="status").spinner-grow.text-danger
  span.sr-only
    | Loading...

// Warning spinner
div(role="status").spinner-grow.text-warning
  span.sr-only
    | Loading...

// Info spinner
div(role="status").spinner-grow.text-info
  span.sr-only
    | Loading...

// Light spinner
div(role="status").spinner-grow.text-light
  span.sr-only
    | Loading...

Size

Loading...
Loading...
Loading...
Loading...
<!-- Small border spinner -->
<div class="spinner-border spinner-border-sm" role="status">
  <span class="sr-only">Loading...</span>
</div>

<!-- Small growing spinner -->
<div class="spinner-grow spinner-grow-sm" role="status">
  <span class="sr-only">Loading...</span>
</div>

<!-- Custom size border spinner -->
<div class="spinner-border" style="width: 3rem; height: 3rem;" role="status">
  <span class="sr-only">Loading...</span>
</div>

<!-- Custom size growing spinner -->
<div class="spinner-grow" style="width: 3rem; height: 3rem;" role="status">
  <span class="sr-only">Loading...</span>
</div>
// Small border spinner
div(role="status").spinner-border.spinner-border-sm
  span.sr-only
    | Loading...

// Small growing spinner
div(role="status").spinner-grow.spinner-grow-sm
  span.sr-only
    | Loading...

// Custom size border spinner
div(style="width: 3rem; height: 3rem;", role="status").spinner-border
  span.sr-only
    | Loading...

// Custom size growing spinner
div(style="width: 3rem; height: 3rem;", role="status").spinner-grow
  span.sr-only
    | Loading...

Inside button

<!-- Button with border spinner -->
<button type="button" class="btn btn-primary btn-icon">
  <span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>
</button>

<!-- Button with border spinner and text -->
<button type="button" class="btn btn-primary">
  <span class="spinner-border spinner-border-sm mr-2" role="status" aria-hidden="true"></span>
  Loading...
</button>

<!-- Button with growing spinner -->
<button type="button" class="btn btn-secondary btn-icon">
  <span class="spinner-grow spinner-grow-sm" role="status" aria-hidden="true"></span>
</button>

<!-- Button with growing spinner and text -->
<button type="button" class="btn btn-secondary">
  <span class="spinner-grow spinner-grow-sm mr-2" role="status" aria-hidden="true"></span>
  Loading...
</button>
// Button with border spinner
button(type="button").btn.btn-primary.btn-icon
  span(role="status", aria-hidden="true").spinner-border.spinner-border-sm

// Button with border spinner and text
button(type="button").btn.btn-primary
  span(role="status", aria-hidden="true").spinner-border.spinner-border-sm.mr-2
  | Loading...

// Button with growing spinner
button(type="button").btn.btn-secondary.btn-icon
  span(role="status", aria-hidden="true").spinner-grow.spinner-grow-sm

// Button with growing spinner and text
button(type="button").btn.btn-secondary
  span(role="status", aria-hidden="true").spinner-grow.spinner-grow-sm.mr-2
  | Loading...
Top