2.6.1 (2024-12-08)
New Features
Snap Behavior Enhancements
We've improved the slider's snapping behavior with new customizable options:
snapThreshold
(New)
- Controls the magnetic snapping behavior when thumb is near a step
- Default value is
0
(snapping disabled) - Works with percentage or absolute units
snapThresholdMode
(New)
- Determines how
snapThreshold
is interpreted:'percentage' | 'absolute'
- Default is
'absolute'
forceSnapToStep
(Renamed)
- Previously named
snapToStep
- Forces the thumb to always snap to the nearest step
- When enabled, overrides
snapThreshold
behavior - Default is
false
Example Update
Added new example inspired by Binance app slider: