Optional
classOptional
defaultThe default value. Use when the component is not controlled.
Optional
id?: stringOptional unique identifier
Optional
isIf true
, the component is disabled.
false
Optional
max?: numberThe maximum allowed value of the slider. Should not be equal to min.
100
Optional
min?: numberThe minimum allowed value of the slider. Should not be equal to max.
0
Optional
onCallback function that is fired when the slider's value changed.
The event source of the callback. You can pull out the new value by accessing event.target.value (any). Warning: This is a generic event not a change event.
The new value.
Index of the currently moved thumb.
Optional
onCallback function that is fired when the mouseup is triggered.
The event source of the callback. Warning: This is a generic event not a change event.
The new value.
Optional
orientation?: "horizontal" | "vertical"The component orientation.
'horizontal'
Optional
showMarks indicate predetermined values to which the user can move the slider. If true
the marks
are spaced according the value of the step
prop.
false
Optional
step?: numberThe granularity with which the slider can step through values. (A "discrete" slider.) The min
prop serves as the origin for the valid values. We recommend (max - min) to be evenly divisible
by the step.
1
Optional
value?: number | number[]The value of the slider. For ranged sliders, provide an array with two values.
Optional
valueControls when the value label is displayed:
auto
the value label will display when the thumb is hovered or focused.on
will display persistently.off
will never display.'off'
Additional css classes to help with unique styling of the button