Skip to components
DEVELOPER REFERENCE · v4.0.0

SliderField API

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

SliderField16 props3 callbacks0 methods

Props16

SliderField props
NameTypeDescription
labelRequiredstringLabel content or accessible name for the component, as rendered by this control.
layoutOptional"inline" | "stacked" | undefinedPlaces the slider label and control inline or in a vertical stack.
valuePlacementOptional"none" | "end" | "thumb" | undefinedPositions the displayed slider value at the end, on the thumb, or hides it.
formatValueOptional
((value: number) => string) | undefinedInspect type
Formats the numeric value for display without changing its stored value.
ticksOptionalnumber | undefinedNumber of evenly spaced decorative tick marks, bounded to 2–101.
accentColorOptionalstring | undefinedCSS color used for the active slider track and thumb.
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

SliderField 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.