Skip to content

GhostSpinner reference ​

Package: @ghostvue/themes. Status: experimental (stability policy).

Themed wrapper around headless GhostSpinner. Same label plus tone and size. Importing it loads the default stylesheet and scopes styles to this instance. 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
labelstring"Loading"NoStatus message forwarded to the unstyled GhostSpinner as visually hidden live-region content.
tone'accent' | 'neutral' | 'danger'"accent"NoSemantic color intent. The default omits data-tone so CSS can treat a missing hook as accent.
size'sm' | 'md' | 'lg'"md"NoCompact status size. The default omits data-size so CSS can treat a missing hook as md.

Emits ​

None declared.

Models ​

None declared.

Slots ​

None declared.

Exposed members ​

None declared.

Parts and data attributes ​

AttributeValueDescription
data-partrootThe status span inside the display:contents themed scope. The spinning ring is a ::before pseudo-element so the hidden label is not transformed.

CSS variables ​

NameDescription
--ghost-action-spinner-sizeEm-relative ring size. Themed sm/md/lg change font-size so this scales.
--ghost-action-spinner-widthStroke width of the spinning ring.
--ghost-action-spinner-durationRotation period. The reduced-motion pulse uses the same period so it does not flicker.
--ghost-action-spinner-opacityReduced-motion pulse trough opacity.
--ghost-action-primary-bgAccent ring color. Default tone.
--ghost-action-neutral-bgNeutral ring color.
--ghost-action-danger-bgDanger ring color.
--ghost-control-size-sm-fontFont size that scales the em-relative ring for size sm.
--ghost-control-size-md-fontFont size that scales the em-relative ring for size md.
--ghost-control-size-lg-fontFont size that scales the em-relative ring for size lg.
--ghost-motion-easing-standardEasing for the reduced-motion pulse.

Accessibility ​

Role: status. APG pattern: https://www.w3.org/WAI/ARIA/apg/practices/live-regions/.

Required ARIA attributes: none.

Keyboard ​

None declared.

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 ​

spinner/sync-status ​

Example source

Registry sync status

Decorative themed spinner while a sync runs, replaced by an up-to-date badge when it finishes; one mounted status line announces both phases.

Syncing registry manifests…Checking 48 component contracts against dist exports

spinner/themed ​

Example source

Themed

Visual size and tone on the @ghostvue/themes wrapper.

LoadingLoading compactLoading spaciousDeleting rows

spinner/table-refresh ​

Example source

Table refresh

Localized pending status; the table owns aria-busy.

Reports Refreshing reports
NameOwner
Q3 revenuePriya