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

Loading

Custom size

LoadingLoadingLoading

Props

Spinner

NameDefaultDescription
size
'small' | 'medium' | 'large'

Sets the width and height of the spinner.

srText
Loading
string | null

Sets the text conveyed by assistive technologies such as screen readers. Set to null if the loading state is displayed in a text node somewhere else on the page.

aria-label Deprecated
string

Sets the text conveyed by assistive technologies such as screen readers.

className
string
data-*
string
delay
false
boolean

Whether to delay the spinner before rendering by the defined 1000ms.