Multi Range Slider
React Bootstrap 5 Multi Range Slider component
MDBootstrap 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
A multi-range-slider slider is gonna autoinit if you add class multi-range-slider to your element. 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
Start Values
You can change start values to ranges with option startValues.
Tooltips
You can set tooltip to ranges with option tooltip.
Step example
You can set a step to the ranges with option step.
Multi Range Slider - API
Import
Properties
MDBMultiRange
Name | Type | Default | Description | Example |
---|---|---|---|---|
defaultValues
|
{ first?: number; second?: number } | '' |
Default values of the input |
<MDBMultiRange defaultValues={values} />
|
min
|
string | number | '' |
Minimum value of the MDBMultiRange |
<MDBMultiRange min='5' />
|
max
|
string | number | '' |
Maximum value of the MDBMultiRange |
<MDBMultiRange max='16' />
|
step
|
string | '1' |
Change the step of the MDBMultiRange |
<MDBMultiRange step='5' />
|
tooltips
|
boolean | false |
Enables tooltips |
<MDBMultiRange tooltips />
|
Events
Name | Type | Default | Description | Example |
---|---|---|---|---|
getValues
|
(values: { first?: number; second?: number }) => void | - |
Returns input values on change |
<MDBMultiRange getValues={(e)=>console.log(e)} />
|