Spinners

Spinners are used to show the loading state of a component or page. They provide feedback for an action a user has taken, when it takes a bit longer to complete.

Default markup

Use the default spinner to notify users that an action they have taken is in progress, helping them avoid confusion.

<div class="spinner-border"></div>

Look at the example below to see how the spinner works:

Colors

Choose one of the available colors to customize the spinner and make it suit your design. Full list of available colors can be found in the Colors section.

<div class="spinner-border text-blue" role="status"></div>
<div class="spinner-border text-red" role="status"></div>

Size

Choose the size of your spinner. You can use the default size or use the spinner-border-sm class to display a smaller spinner.

Growing spinner

Use the growing spinner, if you are looking for a more original design than a border spinner. The spinner grows to show the loading state.

Growing spinners also come in a variety of colors to choose from.

<div class="spinner-grow text-blue" role="status"></div>
<div class="spinner-grow text-azure" role="status"></div>

Button with spinner

Use buttons with spinners to notify users that an action they have taken by clicking the button is in progress and prevent them from clicking multiple times or giving up.

<a href="#" class="btn btn-primary">
  <span class="spinner-border spinner-border-sm me-2" role="status"></span>
  Button
</a>

Look at the example below to see how the button with a spinner works:

Animated dots

Use animated dots to show the loading state of a component. They provide feedback for an action a user has taken, when it takes a bit longer to complete. To do it you need to use the .animated-dots class on span element.

Use buttons with animated dots to notify users that an action they have taken by clicking the button is in progress and prevent them from clicking multiple times or giving up.

Do you have a question? ask the community
Do you see a bug? open an issue on GitHub
Do you like Tabler? tweet about it!
Support Tabler's development: Github Sponsors
illustrations banner imageillustrations banner image dark
65 sleek illustrations for your startup's visual identity.