@m3-moretv/react-code-input
Version:
Typescript implementation of some code/pin-code input
8 lines (7 loc) • 449 B
TypeScript
import { RefObject, FocusEvent } from 'react';
export declare const uuid: () => string;
export declare const moveToNewTarget: (newTarget: RefObject<HTMLInputElement>) => void;
export declare const updateFocus: (target: RefObject<HTMLInputElement>) => void;
export declare const defaultOnFocus: (event: FocusEvent<HTMLInputElement>) => void;
export declare type EmptyString = '';
export declare const fillEmptyArray: (size: number) => EmptyString[];