Spinner
Spinner shows that something is working and that you should wait.
Use a Spinner for a short wait when you can't say how much work is left. It draws eight spokes with a fading trail and turns one spoke at a time.
When you know how far the work has got, such as an upload at 40%, use Progress instead. When the wait belongs to an action, use the loading prop on Button, because the button then marks itself as busy and keeps its label.
A Spinner draws in the colour of the text around it, so it matches its surroundings in every tone and in light and dark mode. Inside a control it is the size of that control's icon, so you can swap an icon for a Spinner and nothing shifts. On its own it is the icon size of a size 2 control.
The rotation keeps running even while the page's JavaScript is busy. When the operating system asks for reduced motion, the Spinner turns more slowly but doesn't stop, because a spinner that stood still would look like a frozen page.
A screen reader doesn't announce a Spinner. Put the state in words next to it, or use a control that marks itself as busy, such as a Button with loading.
- Progress when you know how far along the work is.