string[]The aria-label of each slider thumb. Useful for providing an accessible name to the slider
aria-labelledby
string[]The `id` of the elements that labels each slider thumb. Useful for providing an accessible name to the slider
defaultValue
number[]The initial value of the slider when rendered.
Use when you don't need to control the value of the slider.
disabled
booleanWhether the slider is disabled
form
stringThe associate form of the underlying input element.
getAriaValueText
(details: ValueTextDetails) => stringFunction that returns a human readable value for the slider thumb
id
stringThe unique identifier of the machine.
ids
{
root?: string;
thumb(index: number)?: string;
hiddenInput(index: number)?: string;
control?: string;
track?: string;
range?: string;
label?: string;
valueText?: string;
marker(index: number)?: string;
}The ids of the elements in the range slider. Useful for composition.
invalid
booleanWhether the slider is invalid
max
100
numberThe maximum value of the slider
min
0
numberThe minimum value of the slider
minStepsBetweenThumbs
0
numberThe minimum permitted steps between multiple thumbs.
name
stringThe name associated with each slider thumb (when used in a form)
onFocusChange
(details: FocusChangeDetails) => voidFunction invoked when the slider's focused index changes
onValueChange
(details: ValueChangeDetails) => voidFunction invoked when the value of the slider changes
onValueChangeEnd
(details: ValueChangeDetails) => voidFunction invoked when the slider value change is done
orientation
"horizontal"
"vertical" | "horizontal"The orientation of the slider
origin
"start"
"start" | "center" | "end"The origin of the slider range. The track is filled from the origin
to the thumb for single values.
- "start": Useful when the value represents an absolute value
- "center": Useful when the value represents an offset (relative)
- "end": Useful when the value represents an offset from the end
readOnly
booleanWhether the slider is read-only
step
1
numberThe step value of the slider
thumbAlignment
"contain"
"center" | "contain"The alignment of the slider thumb relative to the track
- `center`: the thumb will extend beyond the bounds of the slider track.
- `contain`: the thumb will be contained within the bounds of the track.