Go Main page
Go Main page

Web components

cover

components

Slider

v.1.0.0 | Saturn

Usage

import { PillSelector } from '@kubit-ui-web/react-components'
1234
<Slider
  label={{ content: 'Mock label' }}
  variant='PRIMARY'
/>

Props

Let's delve into the versatility of the slider component by examining all its avalaible props.

PropertyTypeDefaultDescription
variant
Required
String-Slider variant
typeSliderTypeDISCRETEIt indicates if slider is discrete or continuous
rangebooleanfalseIt indicates if is a range slider
idstring-Slider´s id
minnumber0Slider´s min value
maxnumber100Slider´s max value
stepnumber1Slider´s step value
defaultValuenumber or array-Slider´s default value
valuenumber or array-Slider´s value
initialStepOffsetnumber-Slider´s initial step offset
onChange(value: number or number<array>) => void-Function to call when the inner Slider´s value change
onDragStart() => void-Function excecuted when dragging the thumb
onDragEnd() => void-Function excecuted when drop the thumb
disabledbooleanfalseIt indicates if slider is disable