GhostSkeleton reference
Package: @ghostvue/themes. Status: experimental (stability policy).
Themed wrapper around headless GhostSkeleton. Same as prop plus shape. Sets data-themed so recipes apply without a wrapper element (required for as=td). Hand-written because the wrapper is a .ts defineComponent.
Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
as | 'span' | 'div' | 'p' | 'li' | 'td' | 'th' | "span" | No | Rendered root element, forwarded to the unstyled GhostSkeleton. |
shape | 'text' | 'rect' | 'circle' | "text" | No | Visual treatment. The default omits data-shape so CSS can treat a missing hook as a text line. |
Emits
None declared.
Models
None declared.
Slots
| Name | Description |
|---|---|
default | Optional. Leave empty. Slot content stays aria-hidden and inert with the root. |
Slot props: default
None declared.
Exposed members
None declared.
Parts and data attributes
| Attribute | Value | Description |
|---|---|---|
data-part | root | The element selected by as. data-themed attaches default recipes. |
CSS variables
| Name | Description |
|---|---|
--ghost-surface-muted-bg | Placeholder fill. |
--ghost-surface-subtle-bg | Shimmer highlight mixed over the muted fill. |
--ghost-motion-duration-expressive | Shimmer period. Collapses under reduced motion. |
--ghost-motion-easing-standard | Shimmer easing. |
--ghost-radius-sm | Corner radius of the default text shape. |
--ghost-radius-md | Corner radius of the rect shape. |
--ghost-type-size-md | Default block size of the text shape. |
--ghost-control-size-md-min | Default size of the rect block size and the circle. |
--ghost-border-hairline-width | Forced-colors outline width. |
Accessibility
Role: generic. APG pattern: https://www.w3.org/WAI/ARIA/apg/practices/hiding-semantics/.
Required ARIA attributes: aria-hidden.
Keyboard
| Key | Action | Automated browser test |
|---|---|---|
Tab | Moves past the skeleton. The root is inert and is not a tab stop. | Not reviewed |
Verification
Each category is reviewed separately. Automated keyboard and axe results do not attest manual or assistive-technology review.
| Category | Status | Evidence |
|---|---|---|
| Automated keyboard | Not reviewed | No declared key is mapped to a browser test yet. |
| Manual interaction | Not reviewed | No review recorded. |
| Assistive technology | Not reviewed | No review recorded. |
Examples
skeleton/profile-loading
Skeleton bones that match the maintainer profile layout, replaced by the loaded profile; aria-busy and a mounted status line report loading and arrival.
skeleton/themed
Text, rect, and circle shapes on the @ghostvue/themes wrapper.
skeleton/table
Loading rows with aria-busy and a caption as the status text.