UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

8 lines (7 loc) 293 B
import { MutableRefObject } from 'react'; declare function useHandleCursorPosition(inputRefs: MutableRefObject<HTMLInputElement>[], keysToHandle?: RegExp | { [inputId: string]: RegExp[]; }): { onKeyDown: (event: React.KeyboardEvent) => void; }; export default useHandleCursorPosition;