Min & Max
The min
and max
props are used to set the minimum and maximum values of the Slider. The default values are 0
and 100
respectively.
Basic Example
min
and max
can be set to any number and all handles will be constrained to these.
Negative Values
Negative values are also accepted for min
and max
.
Bound & Clamped
The min
and max
props can also be bound to a variable. Not really sure why you’d want to do this, but it’s possible.
Also demonstrated here is that if a Slider’s value
is outside of the min
and max
range, it will be clamped to the nearest value.