Skip to content

Slider

Overview

A range slider built on Reka UI's SliderRoot, rendering a track, range fill, and draggable thumbs.

Theme entry: Slider

Props

NameTypeRequiredDefaultDescription
themeOverrideString|Object|ArraynullA partial theme object merged with the component's default theme; accepts a class string, class array, or theme object.
classstring|array|objectundefinedAdditional CSS classes to apply to the slider root.
defaultValuearrayundefinedThe default value(s) when uncontrolled.
modelValuearrayundefinedThe controlled value(s) (used with v-model).
disabledbooleanundefinedWhether the slider is disabled.
orientationstringundefinedThe orientation of the slider.
dirstringundefinedThe reading direction.
invertedbooleanundefinedWhether the slider is visually inverted.
minnumberundefinedThe minimum value.
maxnumberundefinedThe maximum value.
stepnumberundefinedThe step increment between values.
minStepsBetweenThumbsnumberundefinedThe minimum number of steps between multiple thumbs.
thumbAlignmentstringundefinedHow thumbs align relative to the track end.
asstring|objectundefinedThe element or component to render as.
asChildbooleanfalseWhen true, merges props onto the child element instead of rendering a wrapper.
namestringundefinedThe name submitted with a form.
requiredbooleanundefinedWhether the field is required.

Events

NameDescription
update:modelValueEmitted when the value changes.

Full event reference

Source

client/lib/controls/slider/Slider.vue

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2