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 912 B
import { type PopupTriggerMap } from "../../utils/popups/index.js"; import { activeElement, contains, getTarget } from "../../internals/shadowDom.js"; export { activeElement, contains, getTarget }; export declare function isTargetInsideEnabledTrigger(target: EventTarget | null, triggerElements: PopupTriggerMap): boolean; 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 isInteractiveElement(element: Element | null): 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;