description: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.
bootstrap-link:components/spinners/
done:true
---
loading state of a component
## Default markup
Use the default spinner to notify users that an action they have taken is in progress, helping them avoid confusion.
{% capture code %}
{% include ui/spinner.html %}
{% endcapture %}
...
...
@@ -16,6 +20,8 @@ done: true
## Colors
Choose one of the available colors to customize the spinner and make it suit your design.
{% capture code %}
{% for color in site.colors %}
{% assign c = color[0] %}
...
...
@@ -27,6 +33,8 @@ done: true
## 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.
{% capture code %}
{% include ui/spinner.html %}
{% include ui/spinner.html size="sm" %}
...
...
@@ -36,11 +44,15 @@ done: true
## 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.
{% capture code %}
{% include ui/spinner.html type="grow" %}
{% endcapture %}
{% include example.html code=code %}
Growing spinners also come in a variety of colors to choose from.
{% capture code %}
{% for color in site.colors %}
{% assign c = color[0] %}
...
...
@@ -52,6 +64,8 @@ done: true
## Buttons
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.
{% capture code %}
{% include ui/button.html spinner=true text="Button" color="primary" %}
{% include ui/button.html spinner=true text="Button" color="danger" %}
description:Tabs allow users to alternate between equally important views within the same context. By dividing content into meaningful sections, they improve its organisation and make it easy for users to navigate.
bootstrap-link:components/navs/
---
## Default markup
Use tabs to let users access different sections within one context quickly and with ease. In the default design, the current tab is highlighted, which makes the interface clear and user-friendly.