Multi Range Slider
Vue Bootstrap 5 Multi Range Slide component
Vue slider is an interactive component that lets the user swiftly slide through possible values spread over a desired range. .
Note: Read the API tab to find all available options and advanced customization
Basic example
Multi-range Slider starts with max 100 and min 0 values.
Basic example with values
You can show values in the another element in dom
One range
You can set a one range to your slider with oneRange
property.
Start Values
You can change start values to ranges with firstValue
and secondValue
properties. Or use
v-model
to get two-way binding.
Tooltips
You can set tooltip to ranges with thumb
property.
Step example
You can set a step to the ranges with step
attribute.
Multi Range Slider - API
Import
Properties
Property | Type | Default | Description |
---|---|---|---|
disabled
|
Boolean | false |
Disables input |
id
|
String | unique random id |
Changes input's id |
secondId
|
String | unique random id |
Changes second input's id |
inputClass
|
String | "" |
Adds input classes |
label
|
String | "" |
Changes input label |
labelClass
|
String | "" |
Adds input label classes |
max
|
Number | 100 |
Sets maximum value |
min
|
Number | 0 |
Sets minimum value |
step
|
Number | 1 |
Defines range step |
tag
|
String | "div" |
Changes input wrapper tag |
thumb
|
Boolean | true |
Enables or disables thumb. |
thumbClass
|
String | "" |
Adds thumb classes |
firstValue
|
Number | 0 |
Changes first input value |
secondValue
|
Number | 100 |
Changes second input value |
wrapperClass
|
String | "" |
Adds input wrapper classes |
oneRange
|
Boolean | false |
Displays only one range |
Events
Event Type | Description |
---|---|
update:firstValue
|
This event fires when the value of first input has been changed. |
update:secondValue
|
This event fires when the value of second input has been changed. |
start
|
This event fires when you start sliding thumb. |
end
|
This event fires when you stop sliding thumb. |
slide
|
This event fires when you use arrows to slide thumb. |