UNPKG

jb-number-input-react

Version:
15 lines (14 loc) 749 B
import { RefObject } from "react"; import { JBInputWebComponent } from "jb-input"; import { type JBInputEventType } from "jb-input/types"; export type JBInputEvents = { onEnter?: (e: JBInputEventType<CustomEvent>) => void; onInput?: (e: JBInputEventType<InputEvent>) => void; onBeforeinput?: (e: JBInputEventType<InputEvent>) => void; onFocus?: (e: JBInputEventType<FocusEvent>) => void; onBlur?: (e: JBInputEventType<FocusEvent>) => void; onKeyup?: (e: JBInputEventType<KeyboardEvent>) => void; onKeydown?: (e: JBInputEventType<KeyboardEvent>) => void; onChange?: (e: JBInputEventType<Event>) => void; }; export declare function useJBInputEvents(element: RefObject<JBInputWebComponent>, props: JBInputEvents): void;