Occasionally you may want to limit the interval of values that can be selected.
For example, maybe we are only allowing the user to to choose multiples of 10, but up
to a maximum of 100. This is where step can be used.
Basic Example
Here’s an example where we’re limiting the values that can be
selected to multiples of 2.5 or 1000.
When step is supplied, the initial values of the Slider will be clamped to the
nearest value that is a multiple of step. This is to ensure that the values
are always valid.
The max value is always rendered and selectable, regardless
of whether it is a multiple of step. So try to make it a multiple if you
want a nice looking Slider.