Spinner
A Spinner is an indeterminate loading indicator, ideal for processes with unknown or variable durations.
Page navigation navigation
React
ready
Rails
ready
Figma
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
Loading
Custom size
LoadingLoadingLoading
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 | |
sx Deprecated | SystemStyleObject |