Skeleton
Reserve space for a card or list while its data loads.
Recommended API
| Property or element | Type | Example initial value | Description |
|---|---|---|---|
role and aria-label | ARIA attributes | status, Loading content | Expose the placeholder as a loading message. |
Placeholder layout | Markup | Card-shaped blocks | Reserve space for the eventual content. |
States
| State | Trigger | Result |
|---|---|---|
loading | Render the placeholder before content arrives. | The skeleton holds space for the pictured structure. |
CSS variables
| Variable | Type | Default | Description |
|---|---|---|---|
--q-text | color | #28302a | Main text and foreground color. |
--q-muted | color | #70776f | Color for secondary text. |
--q-font-size | length | 13px | Base size for the component text. |
--q-surface | color | #ffffff | Surface for controls and cards. |
--q-border | color | #dce0d8 | Color for outlines and dividers. |
--q-border-width | length | 1px | Thickness of the outline. |
--q-radius | length | 10px | Base corner radius. |
--q-gap | length | calc(var(--q-space) * 2) | Space between items, based on the spacing unit. |
--q-panel-padding | length | calc(var(--q-space) * 5) | Inner padding for panels. |
--q-shadow | shadow | 0 4px 16px rgb(0 0 0 / 8%) | Shadow behind raised elements. |
--q-space | length | 4px | Base unit for gaps and padding. |