UNPKG

@bianic-ui/utils

Version:

Common utilties and types for Bianic UI

17 lines (16 loc) 932 B
export declare const hasDisplayNone: (element: Element) => boolean; export declare const hasTabIndex: (element: Element) => boolean; export declare const hasNegativeTabIndex: (element: HTMLElement) => boolean; export declare function isDisabled(element: HTMLElement): boolean; export declare function hasFocusWithin(element: Element): boolean; export declare function isHTMLElement(element: Element): element is HTMLElement; export declare function isHidden(element: HTMLElement): boolean; export declare function isContentEditable(element: HTMLElement): boolean; export declare function isFocusable(element: Element): boolean; export declare function isTabbable(element: Element): boolean; declare const isActiveElement: (element: Element) => boolean; interface FocusProps extends FocusOptions { isActive?: typeof isActiveElement; } export declare function focus(element: HTMLElement, options?: FocusProps): number; export {};