SliderField API
Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.
SliderField16 props3 callbacks0 methods
Props16
| Name | Type | Description |
|---|---|---|
labelRequired | string | Label content or accessible name for the component, as rendered by this control. |
layoutOptional | "inline" | "stacked" | undefined | Places the slider label and control inline or in a vertical stack. |
valuePlacementOptional | "none" | "end" | "thumb" | undefined | Positions the displayed slider value at the end, on the thumb, or hides it. |
formatValueOptional |
| Formats the numeric value for display without changing its stored value. |
ticksOptional | number | undefined | Number of evenly spaced decorative tick marks, bounded to 2–101. |
accentColorOptional | string | undefined | CSS color used for the active slider track and thumb. |
minRequired | number | Minimum permitted value or lower bound for the control. |
maxRequired | number | Maximum permitted value or upper bound for the control. |
valueRequired | number | Value to display or edit. The declared type identifies the supported representation; change callbacks describe how edited values are emitted. |
stepOptional | string | number | undefined | Increment used for value changes. Use a value compatible with the control type. |
disabledOptional | boolean | undefined | Disables user interaction with the control. |
idOptional | string | undefined | Identifier used to associate the control with labels, popup content or other elements. |
classNameOptional | string | undefined | Additional CSS classes applied to the component root. |
ariaLabelRequired | string | Accessible name announced by assistive technology. |
ariaValueTextOptional | string | undefined | Human-readable equivalent of the numeric value for assistive technology. |
ariaDescribedByOptional | string | undefined | Space-separated IDs of elements that describe this control. |
Events and callbacks3
| Name | Type | Description |
|---|---|---|
onChangeRequired |
| Receives the new value when the user changes the control. Update the corresponding value prop for controlled use. |
onCommitOptional |
| Called when an editing gesture commits its value, rather than on every intermediate change. |
onKeyDownOptional |
| 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.