Slider
A Slider allows the user to select values in a linear range of values.
install | yarn add @clayui/slider |
---|---|
version | 3.119.0 |
Stable3.119.0View in LexiconCHANGELOG
Property | Description |
---|---|
defaultValue number | Property to set the default value (uncontrolled). |
disabled boolean | Flag that will disable component features. |
max number | Sets maximum permitted value. The default value is 100 |
min number | Sets minimum permitted value The default value is 0 |
onChange InternalDispatch<number> | Callback will always be called when the slider value changes (controlled). |
onValueChange DeprecatedInternalDispatch<number> | Callback will always be called when the slider value changes.
@deprecated since v3.40.0 - use onChange instead. |
showTooltip boolean | Flag to show tooltip or not. The default value is true |
step number | Sets stepping interval. The default value is 1 |
tooltipPosition 'top' | 'bottom' | Set tooltip position. The default value is 'top' |
value number | Set the current value of the slider (controlled). |