| Prop | Default | Type |
|---|---|---|
as | 'span' | AsTag | ComponentThe element or component this component should render as. Can be overwritten by |
asChild | booleanChange the default rendered element for the one passed as a child, merging their props and behavior. Read our Composition guide for more details. | |
defaultValue | [0] | number[]The value of the slider when initially rendered. Use when you do not need to control the state of the slider. |
dir | 'ltr' | 'rtl'The reading direction of the combobox when applicable. | |
disabled | false | booleanWhen |
inverted | false | booleanWhether the slider is visually inverted. |
max | 100 | numberThe maximum value for the range. |
min | 0 | numberThe minimum value for the range. |
minStepsBetweenThumbs | 0 | numberThe minimum permitted steps between multiple thumbs. |
modelValue | number[] | nullThe controlled value of the slider. Can be bind as | |
name | stringThe name of the field. Submitted with its owning form as part of a name/value pair. | |
orientation | 'horizontal' | 'vertical' | 'horizontal'The orientation of the slider. |
required | booleanWhen | |
step | 1 | numberThe stepping interval. |
thumbAlignment | 'contain' | 'contain' | 'overflow'The alignment of the slider thumb.
|
| Emit | Payload |
|---|---|
update:modelValue | [payload: number[]]Event handler called when the slider value changes |
valueCommit | [payload: number[]]Event handler called when the value changes at the end of an interaction. Useful when you only need to capture a final value e.g. to update a backend service. |
| Slots (default) | Payload |
|---|---|
modelValue | number[] | nullCurrent slider values |
