className | string | Partial<Record<"slider" | "activeTrack" | "handle" | "inactiveTrack" | "valueIndicator" | "dot", string>> | ClassNameComponent<SliderInterface> | No | — | Root classes (string), static element classes (object), or state-aware element classes (function). |
value | number | No | — | Controlled value. Providing it makes the slider controlled for its lifetime. |
defaultValue | number | No | 0 | Initial value for uncontrolled usage. |
onChange | (value: number) => void | No | — | Called once for each accepted value transition (drag, click, or keyboard). |
disabled | boolean | No | false | Prevents interaction and form submission. |
name | string | No | — | Name of the underlying hidden form control. |
valueFormatter | (value: number) => string | number | No | — | Formats the value shown in the drag indicator and `aria-valuetext`. |
step | number | No | — | Snapping increment. Defaults to 10 when neither `step` nor `marks` is given; explicit `marks` without `step` snaps to those marks instead. |
min | number | No | 0 | Minimum value. Use `-Infinity` for an open lower end. |
max | number | No | 100 | Maximum value. Use `Infinity` for an open upper end. |
marks | SliderMark[] | No | — | Labeled positions along the track. Snapped to when `step` is not given; shown for reference alongside a numeric `step` otherwise. |