A range input for selecting numeric values. Supports single value, range selection, step marks, and both horizontal and vertical orientations.
Import all parts of the component and piece them together
The root Slider component.
| Prop | Type | Default |
|---|---|---|
value | number | number[] | -- |
defaultValue | number | number[] | -- |
min | number | 0 |
max | number | 100 |
step | number | 1 |
orientation | enum | horizontal |
disabled | boolean | false |
showStepMarks | boolean | false |
formatValue | function | -- |
onValueChange | function | -- |
onValueCommit | function | -- |