Communicate indeterminate work with accessible status text.
<script type="module" src="/assets/components/spinner/qds-spinner.js"></script>
<qds-spinner id="spinner-main" label="Loading report"></qds-spinner>
| Attribute | Contract |
|---|---|
label |
Accessible status text, default Loading. |
size |
sm (16px), md (24px default), lg (40px). |
decorative |
Hides duplicate status from assistive technology. |
The internal status region contains real text; the rotating ring is decorative. Mark the content being updated with aria-busy=true, then clear it when complete. Use one loading announcement per operation. Motion stops under prefers-reduced-motion: reduce; the ring remains visible. CSS part: indicator. This component has no interactive state or custom events.
The component uses native Web Components with an open shadow root, existing QDS CSS custom properties, and no framework runtime. Base CSS is loaded once. Set data-theme="dark" or data-theme="light" on a containing element or use the documentation toolbar. Event listeners and observers are removed on disconnect; reconnecting is supported.
Interactive demo ยท P0 contracts and verification
Generated Quangular wrappers expose the same attributes/properties and events using the q-qds- prefix. For child composition, use the documented native child elements inside the wrapper when the native parent requires direct children. See the Quangular catalog for generated type signatures.