UNPKG

674 BTypeScriptView Raw
1interface FocusLockFocusOptions {
2 focusOptions?: FocusOptions;
3}
4/**
5 * The main functionality of the focus-lock package
6 *
7 * Contains focus at a given node.
8 * The last focused element will help to determine which element(first or last) should be focused.
9 * The found element will be focused.
10 *
11 * This is one time action (move), not a persistent focus-lock
12 *
13 * HTML markers (see {@link import('./constants').FOCUS_AUTO} constants) can control autofocus
14 * @see {@link focusSolver} for the same functionality without autofocus
15 */
16export declare const moveFocusInside: (topNode: HTMLElement, lastNode: Element, options?: FocusLockFocusOptions) => void;
17export {};