UNPKG

@ui-machines/pin-input

Version:

Core logic for the pin-input widget implemented as a state machine

11 lines (10 loc) 418 B
import { MachineContext as Ctx } from "./pin-input.types"; export declare const dom: { getDoc: (ctx: Ctx) => Document; getRootId: (ctx: Ctx) => string; getInputId: (ctx: Ctx, id: string | number) => string; getRootEl: (ctx: Ctx) => HTMLElement; getElements: (ctx: Ctx) => HTMLInputElement[]; getFocusedEl: (ctx: Ctx) => HTMLInputElement; getFirstInputEl: (ctx: Ctx) => HTMLInputElement; };