UNPKG

@ui-machines/toggle

Version:

Core logic for the toggle widget implemented as a state machine

8 lines (7 loc) 254 B
import type { ToggleMachineContext as Ctx } from "./toggle.types"; export declare const dom: { getDoc: (ctx: Ctx) => Document; getRootId: (ctx: Ctx) => string; getButtonId: (ctx: Ctx) => string; getButtonEl: (ctx: Ctx) => HTMLElement; };