Archived
Template
1
Fork 0
This repository has been archived on 2024-09-04. You can view files and clone it, but cannot push or open issues or pull requests.
Contour/public/@shoelace-style/shoelace/cdn/internal/tabbable.d.ts
2024-01-30 10:59:28 -05:00

9 lines
422 B
TypeScript

/**
* Returns the first and last bounding elements that are tabbable. This is more performant than checking every single
* element because it short-circuits after finding the first and last ones.
*/
export declare function getTabbableBoundary(root: HTMLElement | ShadowRoot): {
start: HTMLElement;
end: HTMLElement;
};
export declare function getTabbableElements(root: HTMLElement | ShadowRoot): HTMLElement[];