Skip to content

Props

Required props

PropTypeDescription
modelValue (v-model)Number | Array | StringSlider value(s)
rangeObjectMin/max range. E.g.: { min: 0, max: 100 }

noUiSlider props

PropTypeDefaultDescription
startNumber | Array | StringValue that reset() returns to. If not provided, uses modelValue
connectBoolean | Array | StringfalseBar between handles. true, 'lower', 'upper' (1 handle) or boolean array
stepNumberIncrement between values
snapBooleanForces jumping between range values
marginNumberMinimum distance between handles
limitNumberMaximum distance between handles
paddingNumber | Array0Minimum distance from edges. [10, 15] for asymmetric
orientationString'horizontal''horizontal' or 'vertical'
directionString'ltr''ltr' or 'rtl'
tooltipsBoolean | Object | Array | FunctionfalseTooltips above handles
animateBooleanfalseTransition on tap or .set()
animationDurationNumber300Animation duration in ms
behaviourString'tap'Hyphen-separated keywords. See options
formatObject{ to: fn, from: fn } for formatting values
pipsObjectnullMarks configuration. See pips
handleAttributesArrayHTML attributes per handle
ariaFormatObjectFormatter for aria attributes
keyboardSupportBooleantrueArrow key support
keyboardDefaultStepNumber10Default keyboard step
keyboardMultiplierNumber1Arrow key multiplier
keyboardPageMultiplierNumber5Page Up/Down multiplier
cssPrefixStringCustom CSS prefix
cssClassesObjectCSS class overrides
disableBooleanfalseDisables the slider

Wrapper props

PropTypeDefaultDescription
idStringauto-generatedSlider element ID
pipsysBooleanfalseShortcut for pips with mode: 'steps'
clickablePipsBooleanfalseClicking pips moves the closest handle
tooltipOnClickBooleanfalseTooltips only when interacting with the handle
mergeTooltipsObjectnull{ threshold, separator } to merge nearby tooltips

TIP

All props are reactive. You can change any prop at runtime and the slider updates automatically.

Released under the MIT License.