Spinner
A Spinner is an indeterminate loading indicator, ideal for processes with unknown or variable durations.
Page navigation navigation
A Spinner can appear alone or paired with a loading message. It can be used as a placeholder for content or to indicate some action is being processed.
For more on loading state design, see our loading guidelines.
React examples
Default
Custom size
Props
Spinner
| Name | Default | Description |
|---|---|---|
size | 'small' | 'medium' | 'large'Sets the width and height of the spinner. | |
srText | Loading | string | nullSets the text conveyed by assistive technologies such as screen readers. Set to |
aria-label Deprecated | stringSets the text conveyed by assistive technologies such as screen readers. | |
className | string | |
data-* | string | |
delay | false | boolean | 'short' | 'long' | numberControls whether and how long to delay rendering the spinner. Set to |