Skip to content

Slider ​

Last updated

Demo ​

slider/demo.vue

Value: 40

Range: 20 – 70

Slider uses Reka UI for dragging, keyboard steps and multiple thumbs. Tokens define appearance. The model is an array: [n] for one value, [a, b] for a range.

Props ​

PropDescriptionTypeDefault
v-modelCurrent valuesnumber[][50]
minMinimumnumber0
maxMaximumnumber100
stepStepnumber1
disabledDisabledbooleanfalse
labelAccessible name for the value or groupstring数值
thumbLabelsOrdered accessible names for each thumbreadonly string[]—

Use label="Volume" for a value or :thumb-labels="['Minimum price', 'Maximum price']" for a range. Missing endpoint names fall back to the label plus ordinal. Arrows follow step; Home/End reach bounds. Disabled thumbs leave the focus order. Touch targets are at least 44px; reduced motion disables transitions.

Events ​

ValueCommit emits number[] when a drag or keyboard adjustment completes. Use @value-commit to persist completed interactions while v-model maintains the interface state.