confignsk 1ae347f531
Some checks are pending
Deploy VitePress site to Pages / build (push) Waiting to run
full start
2025-05-28 01:32:04 +07:00

35 lines
805 B
TypeScript

type FocusableElement = HTMLElement | SVGElement;
export type CheckOptions = {
displayCheck?: 'full' | 'legacy-full' | 'non-zero-area' | 'none';
getShadowRoot?: boolean | ((node: FocusableElement) => ShadowRoot | boolean | undefined);
};
export type TabbableOptions = {
includeContainer?: boolean;
};
export declare function tabbable(
container: Element,
options?: TabbableOptions & CheckOptions
): FocusableElement[];
export declare function focusable(
container: Element,
options?: TabbableOptions & CheckOptions
): FocusableElement[];
export declare function isTabbable(
node: Element,
options?: CheckOptions
): boolean;
export declare function isFocusable(
node: Element,
options?: CheckOptions
): boolean;
export declare function getTabIndex(
node: Element,
): number;