value-
numberControlled value.
defaultValue0
numberInitial value.
onValueChange-
functionFires with the new value while dragging and on each key press.
onValueCommit-
functionFires once when the thumb is let go, and on each key press that changes the value.
max100
numberHighest value.
step10
numberThe arrow key step, the gap between marks, and the snap grid.
snapfalse
booleanSnaps to multiples of step from min, the thumb jumping stop to stop. Off, the value is continuous (rounded to the step's decimals) and the thumb glides after the pointer.
orientationhorizontal
"vertical" | "horizontal"Vertical fills bottom to top, horizontal left to right.
invertedfalse
booleanFills from the other end: top to bottom, or right to left for right-to-left layouts.
sizemd
"sm" | "md" | "lg" | numberTrack thickness: 32, 44 or 56px, or a number of px. Set the length with an h-* or w-* class.
markstrue
booleanShows marks along the track, one per step, spread evenly end to end.
formatString
(value: number) => stringText shown in the thumb and read out by screen readers, e.g. v => `${v}°`.
disabledfalse
booleanDisables interaction.
name-
stringForm field name; submits the value.
classNames-
SliderClassNamesSlot classes: root, track, fill, mark, thumb, value.