value-
numberControlled value.
defaultValue0
numberInitial value.
onValueChange-
functionFires with the new value while dragging and on each key press.
onValueCommit-
functionFires once when the handle is let go, on each key press that changes the value, and when a typed value is committed.
max100
numberHighest value.
step1
numberThe arrow key step, and the grid values are rounded to.
snapfalse
"steps" | "marks" | false"steps" moves the fill from stop to stop. "marks" pulls it onto a mark when the pointer comes within about 10px of one, like a detent.
scalelinear
"linear" | "log" | { toRatio, fromRatio }How values map onto the track. Log spreads small values out (min must be above 0); pass your own toRatio and fromRatio for anything else.
label-
ReactNodeText above the track on the left, also the slider's accessible name.
marks0%, 30%, 70% and 100% of the track
(number | { value, label? })[]Values where a faint mark is drawn. A label shows under the mark (beside it when vertical). Pass [] for none.
format-
(value: number) => stringTurns the value into text for the readout and screen readers, e.g. v => `${v}°`. Wins over locale and formatOptions.
localethe browser's
stringLocale for the number, such as "de-DE", which writes 28 % and 1.250.
formatOptionsa percent
Intl.NumberFormatOptionsHow the number is written, such as { style: "currency", currency: "USD" }. Fraction digits follow step unless you set them here.
readout-
ReactNodeReplaces the rolling number on the right of the header with your own content.
editabletrue
booleanLets a click on the number turn it into a field to type an exact value. Enter or leaving the field commits, Escape cancels.
color#365ee9
stringFill color, any CSS color. The fill fades it in from the start.
sizemd
"sm" | "md" | "lg"Track thickness 44, 54 or 64px. The card, text and handle scale with it.
orientationhorizontal
"horizontal" | "vertical"Vertical fills bottom to top, with the header above a tall track (h-56 at md; set the length with classNames.track).
dirthe page's
"ltr" | "rtl"Right-to-left fills from the right and swaps the left and right arrow keys.
variantcard
"card" | "bare"Bare drops the card and header and renders the track alone; give it an aria-label.
disabledfalse
booleanDisables interaction.
name-
stringForm field name; submits the value.
classNames-
StardustSliderClassNamesSlot classes: label, value, track, fill, handle, mark, markLabel.