Skip to main content

Slider

The 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 Slider component, click Slider page.
For more prop explanations, click Vuetify Slider API page.

Props

AttributeDescriptionTypeDefault
appendIconAppends an icon to the component, uses the same syntax as Icon.stringundefined
darkApplies the dark theme variant to the component.booleanfalse
disabledDisable the input.booleanfalse
errorPuts the input in a manual error state.booleanfalse
errorCountThe total number of errors that should display at once.number | string1
errorMessagesPuts the input in an error state and passes through custom error messages. Will be combined with any validations that occur from the rules prop. This field will not trigger validation.string | array[]
hintHint text.stringundefined
labelApplies the light theme variant to the component.stringundefined
loadingDisplays linear progress bar. Can either be a String which specifies which color is applied to the progress bar (any material color or theme color - primary, secondary, success, info, warning, error) or a Boolean which uses the component color (set by color prop - if it’s supported by the component) or the primary color.boolean | stringfalse
maxSets the maximum allowed value.number | string100
minSets the minimum allowed value.number | string0
prepenInnerIconPrepends an icon to the component, uses the same syntax as Icon.stringundefined
readonlyPuts input in readonly state.booleanfalse
succesPuts the input in a manual success state.booleanfalse
succesMessagesPuts the input in a success state and passes through custom success messagesstring | array[]
stepIf greater than 0, sets step interval for ticks.number | string1
validateOnBlurDelays validation until blur event.booleanfalse
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
verticalChanges slider direction to vertical.booleanfalse
tabindexIt determines the order of switching from one component to another with the tab key.String
valueThe input’s value.anyundefined
visibleVisibility of Slider component.booleantrue

Events

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

Samples Component

image

slider