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, you can create versatile sliders that fit your design needs.

Table of Contents#

Default Slider#

Double Slider#

API Reference#

Explore the available props for the slider component. For more information API Reference

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
invertedDetermines if the slider values are shown in reverse.booleanfalse
defaultValueInitial default value or values for the slider.
number
number[]
0
onValueChangeCallback function when the slider value changes.function(value) => void

Reference#

We've built a slider component using '@radix-ui/react-slider package. This package is handy for creating slider component. If you'd like to explore this package further and understand their features, please check out the documentation for @radix-ui/react-slider.