Import
Basic Usage
Props
The value of the slider. For ranged sliders, provide an array with two values.
The default value. Use when the component is not controlled.
The minimum allowed value of the slider. Should not be equal to max.
The maximum allowed value of the slider. Should not be equal to min.
The granularity with which the slider can step through values. When step is
null, the thumb can only be slid onto marks provided with the marks prop.Marks indicate predetermined values to which the user can move the slider. If
true the marks are spaced according the value of the step prop. If an array, it should contain objects with value and an optional label keys.The color of the component. Supports both default and custom theme colors.
The size of the slider.
The component orientation.
If
true, the component is disabled.If
true, the active thumb doesn’t swap when moving pointer over a thumb while dragging another thumb.The track presentation.
normal renders a bar representing the slider value. inverted renders a bar representing the remaining slider value. false renders without a bar.Controls when the value label is displayed.
auto displays when the thumb is hovered or focused. on displays persistently. off never displays.The format function the value label’s value. Default is identity function.
Callback function that is fired when the slider’s value changed. You can pull out the new value by accessing
event.target.value (any).Callback function that is fired when the
mouseup is triggered.Accepts a function which returns a string value that provides a user-friendly name for the thumb labels of the slider. This is important for screen reader users.
Accepts a function which returns a string value that provides a user-friendly name for the current value of the slider. This is important for screen reader users.
A transformation function, to change the scale of the slider. Default is identity function.
The system prop that allows defining system overrides as well as additional CSS styles.