GhostProgress reference
Package: @ghostvue/themes. Status: experimental (stability policy).
Themed wrapper around headless GhostProgress. Same behavioral props 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 |
|---|---|---|---|---|
value | number | null | — | No | Current progress forwarded to the unstyled GhostProgress. Omit or pass null for the indeterminate fallback. |
max | number | 100 | No | Exclusive upper bound forwarded to the unstyled GhostProgress. |
label | string | — | No | Accessible name forwarded as aria-label on the progressbar. |
valueText | string | — | No | Accessible value text forwarded as aria-valuetext while determinate. |
tone | 'accent' | 'neutral' | 'danger' | 'success' | 'warning' | "accent" | No | Semantic color intent. success and warning fill with the status tokens, as on GhostBadge; there is no info tone. With success or warning, also say the status in text (label, valueText, or visible copy linked with aria-describedby): color alone is not enough. The default omits data-tone so CSS can treat a missing hook as accent. |
size | 'sm' | 'md' | 'lg' | "md" | No | Track thickness. 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 progressbar element inside the display:contents themed scope. |
data-part | indicator | The fill. Determinate width is an inline percentage; indeterminate motion is CSS. |
data-state | indeterminate | Present on the root when value is unknown. Recipe swaps translation for a reduced-motion pulse. |
CSS variables
| Name | Description |
|---|---|
--ghost-surface-muted-bg | Track fill behind the indicator. |
--ghost-action-primary-bg | Accent fill color. Default tone. |
--ghost-action-neutral-bg | Neutral fill color. |
--ghost-action-danger-bg | Danger fill color. |
--ghost-track-thickness-sm | Painted track thickness for size sm. Density-independent. |
--ghost-track-thickness-md | Painted track thickness for size md. Density-independent. |
--ghost-track-thickness-lg | Painted track thickness for size lg. Density-independent. |
--ghost-radius-pill | Track and fill corner rounding. |
--ghost-motion-duration-fast | Determinate fill-width transition. |
--ghost-motion-easing-standard | Easing for determinate transitions and indeterminate motion. |
--ghost-action-spinner-duration | Indeterminate loop period. The reduced-motion pulse uses the same period so it does not flicker. |
--ghost-action-spinner-opacity | Reduced-motion pulse trough opacity. |
Accessibility
Role: progressbar. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/meter/.
Required ARIA attributes: aria-valuemin, aria-valuemax.
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
progress/upload-queue
Determinate, custom-valueText, and indeterminate progress bars inside an upload queue card.
progress/report-export
Indeterminate while rows are counted, then determinate with row-count value text.
progress/themed
Track thickness and tone on the @ghostvue/themes wrapper.
progress/status-tones
Success and warning bars, determinate and indeterminate, each saying its status in text.