Skip to content

Sliders ​

Overview ​

The Slider component allows users to select a single value or range from a defined scale. It supports both continuous and discrete modes, as well as a centered mode for specific use cases.

This library provides two separate Sliders components:

Slider ​

The Slider component allows users to select a single value within a defined range. It can operate in both continuous mode or discrete mode (steps). A centered mode is also available, where the middle-point is aligned to the center of the track.

Continuous slider

continuous slider

Centered slider

centered slider

Discrete slider

discrete slider

Properties ​

namedescriptiontypedefault
maxRequired. The maximum value of the slider.number-
minRequired. The minimum value of the slider.number-
valueThe current selected value of the slider.number0
stepIf provided, the slider operates in discrete mode with steps of the specified value.number-
onChangeValueCallback function triggered when the slider value changes.(value: number) => void-
disabledDisables the slider when set to true.booleanfalse
centeredEnables centered mode, where the slider's zero-point is in the middle of the track.numberboolean
dampingControls the thumb animation's smoothness when a track point is pressed.number20
valueHeightThe height of the value indicator.number44
thumbWidthActiveThe thickness of the thumb when active.number2
thumbWidthInactiveThe thickness of the thumb when inactive.number4
thumbStyleCustom styles for the thumb.ViewStyle-
valueStyleCustom styles for the value indicator.ViewStyle-
indicatorStyleCustom styles for the value indicator's container.ViewStyle-
trackPointStyleCustom styles for individual track points in discrete mode.ViewStyle-
trackPointsStyleCustom styles for all track points.ViewStyle-
filledTrackStyleCustom styles for the filled portion of the track.ViewStyle-
remainingTrackStyleCustom styles for the unfilled portion of the track.ViewStyle-

Range Slider ​

The Range Slider component enables users to select a range of values within a defined scale. It consists of two thumbs that represent the minimum and maximum values. This component supports discrete and centered modes.

continuous slider

Discrete slider

discrete slider

Properties ​

namedescriptiontypedefault
maxRequired. The maximum value of the range slider.number-
minRequired. The minimum value of the range slider.number-
rangeThe current selected range (same as value). An array with exactly two elements: [min, max].number-
stepOperates in discrete mode when a step value is provided.number-
onChangeValueCallback function triggered when the range values change.(value: number) => void-
disabledDisables the range slider when set to true.booleanfalse
centeredEnables centered mode, where the slider's zero-point is in the middle.numberboolean
dampingControls the smoothness of thumb animation when a track point is pressed.number20
valueHeightThe height of the value indicator.number44
thumbWidthActiveThe thickness of the thumbs when active.number2
thumbWidthInactiveThe thickness of the thumbs when inactive.number4
thumbStyleCustom styles for the thumbs.ViewStyle-
valueStyleCustom styles for the value indicator.ViewStyle-
indicatorStyleCustom styles for the value indicator container.ViewStyle-
trackPointStyleCustom styles for individual track points in discrete mode.ViewStyle-
trackPointsStyleCustom styles for all track points.ViewStyle-
filledTrackStyleCustom styles for the filled portion of the track.ViewStyle-
remainingTrackStyleCustom styles for the unfilled portion of the track.ViewStyle-