Slider
Slider is used to pick a numeric value from the predefined range
Props
Name | Type | Default | Description |
---|---|---|---|
className | string | Classnames applied to root element | |
defaultValue | []? | 0 | The default value. Use when the component is not controlled |
disabled | boolean | Whether component is disabled or not | |
disableTrackHighlight | boolean | Disable track highlight. | |
hideThumbOnEmpty | boolean | Hide thumb when value is undefined or null. Works only when the component is controlled. | |
id | string | Id attribute of the | |
marks | boolean | Whether marks are shown or not | |
max | number | 100 | Maximum slider value |
min | number | 0 | Minimum slider value |
name | string | Name attribute of the | |
onBlur | function? | Callback invoked on blur | |
onChange | function? | Callback invoked when slider changes its state. | |
onFocus | function? | Callback invoked on focus | |
step | number | Step for the thumb movement | |
style | CSSProperties | Style applied to root element | |
tooltip | enum | off | Controls when tooltip is displayed:
Enums:undefinedonoffauto |
tooltipFormat | function? | The format function the value tooltip's value. | |
value | []? | Controlled value of the component |
Default
Initial value
Controlled value
Controlled value with label
0
Minimum and Maximum value with label
0
100
Tooltip
Display persistently
Display when the thumb is hovered or focused
Custom rendered label
GMT+00:00
Range
Time Zone
GMT+10:00
GMT+20:00
Range with value label
10
GMT+10:00
GMT+20:00
20