@agnos-ui/core
Version:
Framework-agnostic headless component library.
10 lines (9 loc) • 391 B
TypeScript
/**
* Returns true if the given HTML element is programmatically focusable.
* Warning: this is a best-effort approximation of whether the element is really focusable.
* It may not handle all use cases accurately.
*
* @param element - element to test
* @returns true if the element is programmatically focusable.
*/
export declare const isFocusable: (element: HTMLElement) => boolean;