Slider - Keep React

The slider component in the Keep React allows users to select a value within a specified range. With customizable options for the control handle type, scale display, label, and tooltip, you can create versatile sliders that fit your design needs.

Table of Contents#

Default Slider#

Double Slider#

Slider Steps#

API Reference#

Explore the available props for the slider component

PropertyDescriptionTypeDefault
minMinimum value of the slider.number0
maxMaximum value of the slider.number100
stepStep size for each increment on the slider. Can be null.numbernumber
rangeDetermines whether the slider displays a range color.booleanfalse
dotsDetermines whether dots are displayed on the slider.booleanfalse
marksDefines points on the slider with custom labels.ObjectObject
reverseDetermines if the slider values are shown in reverse.booleanfalse
disabledDetermines if the slider is disabled.booleanfalse
defaultValueInitial default value or values for the slider.
number
number[]
0
onChangeCallback function when the slider value changes.function(value) => void
tooltipSpecifies the position of the tooltip or hides it.
top
bottom
none
top

Reference#

We've built a slider component using two third-party packages: rc-slider and rc-tooltip. These packages are handy for creating sliders with tooltips. If you'd like to explore these packages further and understand their features, please check out the documentation for Rc-slider and Rc-tooltip.