![]() |
VOOZH | about |
Bootstrap 5 Spinners are used to display the loading state of a component or a page. The spinners within buttons are used to represent an action that is currently processing.
Spinners Buttons used Classes:
Syntax:
<button class="btn btn-*" type="button"> <span class="spinner-border spinner-border-*" role="status" aria-hidden="true"></span> <span class="visually-hidden">...</span> </button>
Example 1: In this example, we will create loading spinner buttons with some text.
Output:
Example 2: In this example, we will create loading spinner buttons. in different colors and sizes.
Output:
Reference: https://getbootstrap.com/docs/5.0/components/spinners/#buttons