Components, Feedback
Spinner
A circular loading indicator that appears immediately while data loads.
current
primary
A circular loading indicator. It appears immediately. Use it only while data is loading. An agent’s work belongs to Star.
When to use
tone |
Appearance | Where |
|---|---|---|
current (default) |
A 2px ring that follows the surrounding text color, open at the top. | Next to buttons and text. |
primary |
A border track with a primary-text arc. The arc is ink in light and paper in dark. |
Alone, in the center of an empty area. |
Sizes
- Use only these five sizes: 12, 14, 16 (the default), 20 and 24px.
- One turn takes 0.6 seconds.
What you provide
label: the text a screen reader reads. If the same text is already on screen, leave it out and putrole="status"on the wrapper.
Markup
<span class="Spinner_ring" style="width: 16px; height: 16px" aria-hidden="true"></span>
<span class="Spinner_ring Spinner_primary" style="width: 20px; height: 20px" aria-hidden="true"></span>
<span class="Spinner_srOnly">Loading</span>
Don’t
- Don’t paint the arc with
primary. The arc isprimary-text. - Don’t use it while waiting for a chat response. That place belongs to Star.