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.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
label | string | "Loading" | No | Status message forwarded to the unstyled GhostSpinner as visually hidden live-region content. |
tone | 'accent' | 'neutral' | 'danger' | "accent" | No | Semantic color intent. The default omits data-tone so CSS can treat a missing hook as accent. |
size | 'sm' | 'md' | 'lg' | "md" | No | Compact 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
| Attribute | Value | Description |
|---|---|---|
data-part | root | The 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
| Name | Description |
|---|---|
--ghost-action-spinner-size | Em-relative ring size. Themed sm/md/lg change font-size so this scales. |
--ghost-action-spinner-width | Stroke width of the spinning ring. |
--ghost-action-spinner-duration | Rotation period. The reduced-motion pulse uses the same period so it does not flicker. |
--ghost-action-spinner-opacity | Reduced-motion pulse trough opacity. |
--ghost-action-primary-bg | Accent ring color. Default tone. |
--ghost-action-neutral-bg | Neutral ring color. |
--ghost-action-danger-bg | Danger ring color. |
--ghost-control-size-sm-font | Font size that scales the em-relative ring for size sm. |
--ghost-control-size-md-font | Font size that scales the em-relative ring for size md. |
--ghost-control-size-lg-font | Font size that scales the em-relative ring for size lg. |
--ghost-motion-easing-standard | Easing 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.
| 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
spinner/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.
spinner/themed
Visual size and tone on the @ghostvue/themes wrapper.
spinner/table-refresh
Localized pending status; the table owns aria-busy.