Skip to components
DEVELOPER REFERENCE · v4.0.0

SingleValueSlider API

Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.

SingleValueSlider10 props3 callbacks0 methods

Props10

SingleValueSlider props
NameTypeDescription
minRequirednumberMinimum permitted value or lower bound for the control.
maxRequirednumberMaximum permitted value or upper bound for the control.
valueRequirednumberValue to display or edit. The declared type identifies the supported representation; change callbacks describe how edited values are emitted.
stepOptionalstring | number | undefinedIncrement used for value changes. Use a value compatible with the control type.
disabledOptionalboolean | undefinedDisables user interaction with the control.
idOptionalstring | undefinedIdentifier used to associate the control with labels, popup content or other elements.
classNameOptionalstring | undefinedAdditional CSS classes applied to the component root.
ariaLabelRequiredstringAccessible name announced by assistive technology.
ariaValueTextOptionalstring | undefinedHuman-readable equivalent of the numeric value for assistive technology.
ariaDescribedByOptionalstring | undefinedSpace-separated IDs of elements that describe this control.

Events and callbacks3

SingleValueSlider events and callbacks
NameTypeDescription
onChangeRequired
(value: number, event: Event & { currentTarget: HTMLInputElement; }) => voidInspect type
Receives the new value when the user changes the control. Update the corresponding value prop for controlled use.
onCommitOptional
((value: number, event: Event & { currentTarget: HTMLInputElement; }) => void) | undefinedInspect type
Called when an editing gesture commits its value, rather than on every intermediate change.
onKeyDownOptional
((event: KeyboardEvent) => void) | undefinedInspect type
Handles keyboard input; receives the keyboard event and any item/date context shown in the signature.

Methods0

No component-specific imperative methods. Use props and callbacks to control this component.