Slider

The Slider component is used to increase/decrease by value.

1. Import

KUMUI exports 1 Slider-related components:

import { Slider } from "@rohitgadekar/kimui";

2. Usage


3. API

3.1 Slider

AttributeTypeDescriptionDefault
value

number[] | number

Defines the current value of the slider. Can be an array if using multiple handles.[0]
max

number

Maximum value of the slider. Default is 100.100
min

number

Minimum value of the slider. Default is 0.0
step

number

Defines the step between values when the slider is moved. Default is 1.1
disabled

boolean

Disables the slider, preventing user interaction.false
onValueChange

(value: number[]) => void

Callback function that is called when the slider's value changes. It returns the updated value as an array.-