As of version 4.0.0, it is now possible to set a minimum or maximum distance between the handles.
This is done by setting the rangeGapMin and rangeGapMax properties.
Another use-case may be to make a fixed-size range which can be moved along the slider,
but without allowing the user to change the size of the range.
To enable this we will also need to turn on draggy to allow user to drag the range, and
pushy to allow each handle to push/pull the other handle.
To make this example even nicer, there’s a new rangeFloat property which allows
combining the float values from both handles into a single float over the range.
<script>constgap=20;let values = [40, 40+ gap];</script><RangeSliderrangerangeGapMin={gap} rangeGapMax={gap}rangeFloatdraggypushypipsbind:values/><strong><em>Try dragging the range to move it.</em></strong>