Range Slider
A RangeSlider component with Miuix style.
Range Sliders expand upon Slider using the same concepts but allow the user to select 2 values. The two values are still bounded by the value range but they also cannot cross each other.
Parameters
Current values of the RangeSlider. If either value is outside of valueRange provided, it will be coerced to this range.
Lambda in which values should be updated.
The modifier to be applied to the RangeSlider.
Whether the RangeSlider is enabled.
Range of values that Range Slider values can take. Passed value will be coerced to this range.
If positive, specifies the amount of discrete allowable values between the endpoints of valueRange.
Lambda to be invoked when value change has ended.
The height of the RangeSlider.
The SliderColors of the RangeSlider.
The haptic effect of the RangeSlider.
Whether to show the key points (step indicators) on the slider. Only works when keyPoints is not null.
Custom key point values to display on the slider. If null, uses step positions from steps parameter. Values should be within valueRange.
The magnetic snap threshold as a fraction (0.0 to 1.0). When the slider value is within this distance from a key point, it will snap to that point. Default is 0.02 (2%). Only applies when keyPoints is set.