Spinner
On this page
On this page
Overview
Provides an animated loading indicator for when content is being
processed or fetched. A spinner should be used when loading takes
fewer than ten seconds and the content structure is unknown.
Authors must not use a spinner for indeterminate loading over ten
seconds; use a progress bar instead. Authors should avoid omitting
a text label, as screen readers rely on role="status" to announce
the ARIA live region. The element is not keyboard-focusable.
Edit element properties
import '@rhds/elements/rh-spinner/rh-spinner.js';
<rh-spinner></rh-spinner>
import { Spinner } from "@rhds/elements/react/rh-spinner/rh-spinner.js";
// NOTE: React 19+ does not require these wrapper imports.
// You can use the custom elements directly as-is.
export const Demo = () => (
<Spinner />
);
Preset sizes for the spinner
Status
What do these mean?
- Figma library:
-
Ready - RH Elements:
-
Ready - RH Shared Libs:
-
Ready
When to use
- When loading a section is expected to take fewer than ten seconds
- When the structure or amount of content that's loading is unknown
Image of a spinner element
Status checklist
| Property | Status | Meaning |
|---|---|---|
| Figma library |
|
Component is available in the Figma library |
| RH Elements |
|
Component is available in RH Elements |
| RH Shared Libs |
|
Component is available in RH Shared Libs |
Other libraries
To learn more about our other libraries, visit this page.
Feedback
To give feedback about anything on this page, contact us.