Skip to main content

Range Slider

The Range Slider component is a better visualization of the number input. It is used for gathering numerical user data.

info

For more details about Vuetify’s usage of Range Slider component, click Range Slider page.
For more prop explanations, click Vuetify Range Slider API page.

Props

AttributeDescriptionTypeDefault
appendIconAppends an icon to the component, uses the same syntax as Icon.stringundefined
backgroundColorChanges the background-color of the input.stringundefined
classAllows custom properties to take effect.stringundefined
colorSets the color of the line between Slider's dots.stringundefined
darkApplies the dark theme .booleanfalse
denseReduces the input height.booleanfalse
disabledDisable the input.booleanfalse
heightSets the height of the input.number-stringundefined
hideDetailsHides hint and validation errors.stringundefined
hintHint text.stringundefined
idSets the DOM id on the component.stringundefined
inverseLabelReverse the label position. Works with rtl.booleanfalse
labelSets input label.stringundefined
loaderHeightSpecifies the height of the loader.number-string2
loadingDisplays linear progress bar.booleanfalse
persistentHintForces hint to always be visible.booleanfalse
prependIconPrepends an icon to the component, uses the same syntax as Icon.stringundefined
readonlyPuts input in readonly state.booleanfalse
thumbColorSets the thumb and thumb label color .stringundefined
thumbLabelShow thumb label. If true it shows label when using slider. If set to 'always' it always shows label.stringundefined
tickSizeControls the size of ticks.number-string2
trackColorSets the track’s color.stringundefined
trackFillColorSets the track’s fill color.stringundefined
errorPuts the input in a manual error state.booleanfalse
errorCountThe total number of errors that should display at once.number-string1
errorMessagePuts the input in an error state and passes through custom error messages.string-arrayundefined
maxSets the maximum allowed value.number100
minSets the minimum allowed value.number0
successPuts the input in a manual success state.booleanfalse
successMessagePuts the input in a success state and passes through custom success messages.string-arrayundefined
stepIf greater than 0, sets step interval for ticks.number1
prependInnerIconPrepends an icon inside the component’s input, uses the same syntax as Icon.stringundefined
thumbSizeControls the size of the thumb label.number-string32
tickLabelsWhen provided with Array, will attempt to map the labels to each step in index order.array[]
ticksShow track ticks. If true it shows ticks when using slider. If set to 'always' it always shows ticks.boolean-stringfalse
rulesAccepts a mixed array of types function, boolean and string. Functions pass an input value as an argument and must return either true / false or a string containing an error message. The input field will enter an error state if a function returns (or any value in the array contains) false or is a string.array[]
validateOnBlurDelays validation until blur. event.booleanfalse
verticalChanges slider direction to vertical.booleanfalse
tabindexAllows component to give and receive focus.numberundefined
valueSets Slider's value.number-array[30,60]
visibleVisibility of ProgressLinear component.booleantrue

Events

AttributeDescription
change(value: any[])Emitted when the input is changed by user interaction
input(value: any[])The updated bound model