Skip to content

Events#

TypeDescription
onChangefunction(optional) Will be called on state changes made by the user. The callback value and rawValue is a number { value, rawValue, event }. But if the numberFormat property is given, then it will return an additional number with the given format { value, number, rawValue, event }.
onDragStartfunction(optional) Will be called once the user starts dragging. Returns { event }.
onDragEndfunction(optional) Will be called once the user stops dragging. Returns { event }.
onKeyDown(event: React.KeyboardEvent<HTMLInputElement>) => void(optional) Will be called when a key is pressed while a thumb button has focus.
onKeyUp(event: React.KeyboardEvent<HTMLInputElement>) => void(optional) Will be called when a key is released while a thumb button has focus.
Suggest an edit