Skip to content

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.

All component references

Props ​

NameTypeDefaultRequiredDescription
labelstring—NoAccessible name applied as aria-label. role=progressbar is nameFrom author; contents are presentational and cannot name the widget.
maxnumber100NoExclusive upper bound of the range. Defaults to 100 (ARIA progressbar valuemax), not HTML progress's 1. Invalid values fall back to 100.
valuenull | number—NoCurrent 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].
valueTextstring—NoAccessible 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 ​

AttributeValueDescription
data-partrootThe progressbar div. data-state=indeterminate is present only while the value is unknown.
data-partindicatorThe fill. Determinate width is an inline inline-size percentage so headless consumers get a functional bar without the theme.
data-stateindeterminateValue 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.

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

Examples ​

progress/basic ​

Example source

Basic Headless

Named determinate progressbar with value and max.

progress/composable ​

Example source

Composable Headless

Same contract as GhostProgress, applied to a native host.

progress/indeterminate ​

Example source

Indeterminate Headless

Fallback when the current value is unknown.

progress/value-text ​

Example source

Value text Headless

Custom accessible value text instead of a percent.