@limetech/lime-elements
Version:
10 lines • 414 B
TypeScript
/**
* Focuses the first focusable element inside a trigger element.
* Supports custom elements by searching both the element's shadow root
* and its light DOM.
*
* @param trigger - The trigger element to focus.
* @returns `true` if focus was moved, otherwise `false`.
*/
export declare const focusTriggerElement: (trigger?: HTMLElement | null) => boolean;
//# sourceMappingURL=focus-trigger-element.d.ts.map