UNPKG

@base-ui/react

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

11 lines 933 B
import { type PopupTriggerMap } from "../../utils/popups/index.js"; export declare function activeElement(doc: Document): Element | null; export declare function contains(parent?: Element | null, child?: Element | null): boolean; export declare function isTargetInsideEnabledTrigger(target: EventTarget | null, triggerElements: PopupTriggerMap): boolean; export declare function getTarget(event: Event): EventTarget | null; export declare function isEventTargetWithin(event: Event, node: Node | null | undefined): boolean; export declare function isRootElement(element: Element): boolean; export declare function isTypeableElement(element: unknown): boolean; export declare function isTypeableCombobox(element: Element | null): boolean; export declare function matchesFocusVisible(element: Element | null): boolean; export declare function getFloatingFocusElement(floatingElement: HTMLElement | null | undefined): HTMLElement | null;