@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.
13 lines • 442 B
TypeScript
interface ElementBounds {
left: number;
right: number;
top: number;
bottom: number;
}
/**
* Determines if a mouse event occurred within the bounds of an element
* (including its pseudo-elements), with a small tolerance for pointer drift.
*/
export declare function isMouseWithinBounds(event: MouseEvent, element: HTMLElement): boolean;
export declare function getPseudoElementBounds(element: HTMLElement): ElementBounds;
export {};