ProgressSpinner
Working on it.
About
Indeterminate ring spinner for a wait with no known total: a register loading, an entry posting. Pair it with a short label on a panel and keep it small and unlabeled inside a control that already says what it is doing. Use sui-progress-bar or sui-progress-ring when there is a total.
Usage
Basic
label is both the visible caption and the accessible name, so they cannot drift; with no caption it falls back to aria-label, then to "Loading". The ring is role="status", so inserting one announces politely and takes no focus. It keeps turning under reduced motion, only slower: a stopped spinner reads as a hang.
Accent and sizes
accent swaps the navy arc for orange. diameter is the outer diameter and thickness the stroke, both in px.
In place
The spinner is an inline block, so it sits inside whatever is waiting. Pair it with a caption on a panel, and keep it small and unlabeled inside a control that already says what it is doing.
API
<sui-progress-spinner>
Properties
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
accent | accent | boolean | false | Accent arc instead of brand. |
diameter | diameter | number | 32 | Outer diameter of the spinner in px. |
label | label | stringstring | undefined | Caption under the ring and the accessible name, so the two cannot drift. With no caption the name falls back to aria-label on the host, then to "Loading". The ring is role="status": inserting one announces it politely without taking focus, and removing it announces nothing. It keeps turning under reduced motion, only slower, because a stopped spinner reads as a hang. | |
thickness | thickness | number | 3 | Ring stroke in px. |
Theming
Every design token this element can render with, read from its own stylesheets and the ones it imports. Set a token on :root or on any ancestor and every use below follows it. The values shown are the ones in the theme you are viewing. The list is read per stylesheet, so an element that imports a shared drawing module lists that module's tokens too, whether or not it paints with all of them.
Color4
Typography1
Every name above is listed with its value and its role in Foundations.