value
number[]
onValueChange
(value: number[]) => void
onValueCommit
(value: number[]) => void
Use defaultValue
to set the initial value of the slider (between 0 and 100).
View code
Use value
and onValueChange
props to control the checked state.
View code
Use onValueCommit
if you want to update the value only when the user has finished dragging the slider.
View code
Use min
and max
props to set the minimum and maximum values of the slider.
View code
Use step
prop to set the step size of the slider.
View code
View code