Skip to content

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.

All component references

Props ​

NameTypeDefaultRequiredDescription
as'span' | 'div' | 'p' | 'li' | 'td' | 'th'"span"NoRendered root element, forwarded to the unstyled GhostSkeleton.
shape'text' | 'rect' | 'circle'"text"NoVisual treatment. The default omits data-shape so CSS can treat a missing hook as a text line.

Emits ​

None declared.

Models ​

None declared.

Slots ​

NameDescription
defaultOptional. 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 ​

AttributeValueDescription
data-partrootThe element selected by as. data-themed attaches default recipes.

CSS variables ​

NameDescription
--ghost-surface-muted-bgPlaceholder fill.
--ghost-surface-subtle-bgShimmer highlight mixed over the muted fill.
--ghost-motion-duration-expressiveShimmer period. Collapses under reduced motion.
--ghost-motion-easing-standardShimmer easing.
--ghost-radius-smCorner radius of the default text shape.
--ghost-radius-mdCorner radius of the rect shape.
--ghost-type-size-mdDefault block size of the text shape.
--ghost-control-size-md-minDefault size of the rect block size and the circle.
--ghost-border-hairline-widthForced-colors outline width.

Accessibility ​

Role: generic. APG pattern: https://www.w3.org/WAI/ARIA/apg/practices/hiding-semantics/.

Required ARIA attributes: aria-hidden.

Keyboard ​

KeyActionAutomated browser test
TabMoves 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.

CategoryStatusEvidence
Automated keyboardNot reviewedNo declared key is mapped to a browser test yet.
Manual interactionNot reviewedNo review recorded.
Assistive technologyNot reviewedNo review recorded.

Examples ​

skeleton/profile-loading ​

Example source

Profile loading placeholder

Skeleton bones that match the maintainer profile layout, replaced by the loaded profile; aria-busy and a mounted status line report loading and arrival.

Maintainer profileLoading profile…

skeleton/themed ​

Example source

Themed

Text, rect, and circle shapes on the @ghostvue/themes wrapper.

skeleton/table ​

Example source

Table loading

Loading rows with aria-busy and a caption as the status text.

Loading reports
ReportOwnerStatus