Reserve final content dimensions while data loads.
<script type="module" src="/assets/components/skeleton/qds-skeleton.js"></script>
<div id="skeleton-example" aria-busy="true"><span role="status">Loading summary…</span><qds-skeleton shape="circle"></qds-skeleton><qds-skeleton style="--qds-skeleton-width:70%;margin-top:16px"></qds-skeleton><qds-skeleton style="--qds-skeleton-width:90%;margin-top:8px"></qds-skeleton></div>
| API | Contract |
|---|---|
shape |
text (default), rectangle, circle. |
static |
Disable pulse regardless of user motion preference. |
--qds-skeleton-width |
Reserved CSS width, default 100%; circle default 3rem. |
--qds-skeleton-height |
Reserved CSS height, default 1em; circle default 3rem. |
Match the final content’s dimensions to reduce layout movement. The host and placeholder are aria-hidden=true; do not put meaningful or focusable content inside. Use one separate status message and aria-busy on the surrounding content region. Replace placeholders when content is ready. The pulse stops under reduced motion. CSS part: placeholder. There are no 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.