UNPKG

react-pin-field

Version:

React component for entering PIN codes

12 lines (11 loc) 352 B
import { ActionDispatch, RefObject } from 'react'; import { State } from './state'; import { Action } from './actions'; export type Handler = { refs: RefObject<HTMLInputElement[]>; state: State; dispatch: ActionDispatch<[Action]>; value: string; setValue: (value: string) => void; }; export declare function usePinField(): Handler;