Skip to content

GhostSlider reference ​

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

Headless range input with APG slider semantics, optional two-thumb range mode, stepped keyboard interaction, and hidden form inputs. GhostSlider is the unstyled root; useGhostSlider owns the model.

Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.

All component references

Props ​

NameTypeDefaultRequiredDescription
defaultValueGhostSliderValue—NoUncontrolled seed and form-reset baseline.
disabledbooleanfalseNoNon-operable; hidden inputs not submitted.
formstring—NoExternal form association.
maxnumber100NoUpper bound.
messagesGhostSliderMessages—NoOverridable range-thumb naming strings (`minimum`, `maximum`) and `aria-label` formatters (`formatMinimumLabel`, `formatMaximumLabel`).
minnumber0NoLower bound.
modelValueGhostSliderValue—NoControlled value; tuple when `range` is true.
namestring—NoPrimary hidden field name.
nameMaxstring—NoHigh thumb name when `range` is true.
orientation'horizontal' | 'vertical'"horizontal"NoAxis and keyboard mapping.
rangebooleanfalseNoTwo-thumb interval mode.
stepnumber1NoSnap increment.
valueTextstring—No`aria-valuetext` for single-thumb mode.

Emits ​

None declared.

Models ​

PropEventTypeDescription
modelValueupdate:modelValueGhostSliderValuev-model binding for `modelValue`.

Slots ​

NameDescription
defaultOptional inner content. Prefer aria-labelledby or an external label.

Slot props: default ​

None declared.

Exposed members ​

NameTypeDescription
blur() => voidExposed method `blur`.
elementHTMLElement | nullRoot element after mount; null before mount.
focus(options?: FocusOptions) => voidExposed method `focus`.
valueGhostSliderValueExposed property `value`.

Parts and data attributes ​

AttributeValueDescription
data-partrootTrack container; native attributes fall through here.
data-parttrackFull axis span; pointer press moves the nearest thumb.
data-partrangeSelected interval or fill from min to the value.
data-partthumbrole=slider handle; data-thumb-index 0 or 1 in range mode.
data-orientationhorizontal, verticalResolved orientation on the root. Always present.

CSS variables ​

None declared.

Accessibility ​

Role: slider. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/slider/.

Required ARIA attributes: aria-valuemin, aria-valuemax, aria-valuenow.

Keyboard ​

KeyActionAutomated browser test
ArrowRightIncrease (horizontal LTR); flips in RTLGhostSlider › steps a horizontal LTR slider with every documented horizontal key (@ghostvue/vue)
GhostSlider › centers thumbs and vertical rails across LTR/RTL, sizes, pointer drags, keyboard, and reactive dir @cross-browser (@ghostvue/themes)
ArrowLeftDecrease (horizontal LTR); flips in RTLGhostSlider › steps a horizontal LTR slider with every documented horizontal key (@ghostvue/vue)
GhostSlider › centers thumbs and vertical rails across LTR/RTL, sizes, pointer drags, keyboard, and reactive dir @cross-browser (@ghostvue/themes)
ArrowUpIncrease on verticalGhostSlider › maps vertical pointer drags and arrow keys identically in RTL and LTR @cross-browser (@ghostvue/themes)
ArrowDownDecrease on verticalGhostSlider › maps vertical pointer drags and arrow keys identically in RTL and LTR @cross-browser (@ghostvue/themes)
PageUpLarge step toward maximumGhostSlider › steps a horizontal LTR slider with every documented horizontal key (@ghostvue/vue)
PageDownLarge step toward minimumGhostSlider › steps a horizontal LTR slider with every documented horizontal key (@ghostvue/vue)
HomeMinimumGhostSlider › steps a horizontal LTR slider with every documented horizontal key (@ghostvue/vue)
GhostSlider › centers thumbs and vertical rails across LTR/RTL, sizes, pointer drags, keyboard, and reactive dir @cross-browser (@ghostvue/themes)
EndMaximumGhostSlider › steps a horizontal LTR slider with every documented horizontal key (@ghostvue/vue)
GhostSlider › centers thumbs and vertical rails across LTR/RTL, sizes, pointer drags, keyboard, and reactive dir @cross-browser (@ghostvue/themes)

Verification ​

Each category is reviewed separately. Automated keyboard and axe results do not attest manual or assistive-technology review.

CategoryStatusEvidence
Automated keyboardPassedEvery declared key maps to a Chromium browser test that CI runs and requires to pass on every commit.
Manual interactionNot reviewedNo review recorded.
Assistive technologyNot reviewedNo review recorded.

Examples ​

slider/basic ​

Example source

Single value Headless

Headless numeric slider with stepped values.

35 credits

slider/range ​

Example source

Range filter Headless

Two-thumb interval selection for tables.

From 25 to 75

slider/vertical ​

Example source

Vertical themed

Themed vertical orientation and tokens.

Gain 60%

slider/value-text ​

Example source

Value text Headless

Named slider with aria-valuetext alongside the numeric value.