Border Spinners
Use class .spinner-border
for a lightweight loading indicator.
Colored Spinners
For customizing spinner with different colored options, use .text-{colorName}
along with .spinner-border
.
Growing Spinner
Use class .spinner-grow
for a growing spinner.
Colored Growing Spinners
For colored growing spinner, use .text-{color}
along with .spinner-grow
.
Flex
Use Flexbox utilities to place spinners. Use .d-flex
and
.align-items-{side}
Float
You can also use .float-{left | right}
to place your spinner left or right side.
Text Alignment
You can also use .text-{side}
as a wrapper class of .spinner-border
for the spinner's placement.
Sizes
Use .spinner-border-{sm/lg}
and .spinner-grow-{sm/lg}
for Small or
Large spinner.
Buttons
Use .spinner-border
or .spinner-grow
inside buttons to indicate an
action is currently processing or taking place.