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
themeOverrideObjectnullA partial ThemeObject keyed by component name, merged over this component's theme and provided to descendants.
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