Q:

Material UI Range Slider: Make the thumb snap to a value when its vicinity

I need a slider having marks on fixed interval and one of those marks has to be the desired value.
whenever the thumb is in the vicinity of the desired value, the thumb friction should snap it to this value.

A:

This can be achieved by controlling the value.
Refer the sandbox:
https://codesandbox.io/s/material-demo-pn84b?file=/demo.tsx

