GhostProgress reference
Package: @ghostvue/vue. Status: experimental (stability policy).
Headless determinate progress indicator with an indeterminate fallback. useGhostProgress owns progressbar semantics, clamping, and value text; GhostProgress is the thin unstyled element. Themed visual props live on @ghostvue/themes.
Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
label | string | — | No | Accessible name applied as aria-label. role=progressbar is nameFrom author; contents are presentational and cannot name the widget. |
max | number | 100 | No | Exclusive upper bound of the range. Defaults to 100 (ARIA progressbar valuemax), not HTML progress's 1. Invalid values fall back to 100. |
value | null | number | — | No | Current progress in the same unit as max. Omit or pass null for the indeterminate fallback. Non-finite numbers are treated as unknown. Finite values are clamped to [0, max]. |
valueText | string | — | No | Accessible value text (aria-valuetext) for determinate instances. When omitted, the default is the rounded percent. Ignored while indeterminate. |
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 div. data-state=indeterminate is present only while the value is unknown. |
data-part | indicator | The fill. Determinate width is an inline inline-size percentage so headless consumers get a functional bar without the theme. |
data-state | indeterminate | Value is omitted, null, or non-finite. aria-valuenow and aria-valuetext are omitted. |
CSS variables
None declared.
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/basic
Named determinate progressbar with value and max.
progress/composable
Same contract as GhostProgress, applied to a native host.
progress/indeterminate
Fallback when the current value is unknown.
progress/value-text
Custom accessible value text instead of a percent.