Display the current value and an inputable range.
Accept clicks or drag actions.
Do not respond to drag and click.
Different granularity.
Specifies the maximum or minimum value of the Slider.
Get event when slide.
Slider.Props
Attribute | Description | Type | Accepted values | Default |
---|---|---|---|---|
initialValue | initial value | number | - | 0 |
value | slider value | number | - | 0 |
step | the granularity the slider can step through values | number | - | 1 |
max | the maximum value of slider | number | - | 100 |
min | the minimum value of slider | number | - | 0 |
disabled | disable slider interaction | boolean | false | |
showMarkers | show each marker | boolean | - | false |
onChange | called when the value of silder changes | (val: number) => void | - | - |
... | native props | HTMLAttributes | 'id', 'name', 'className', ... | - |