@zag-js/dom-query
Version:
The dom helper library for zag.js machines
8 lines (6 loc) • 548 B
TypeScript
type OverflowAncestor = Array<VisualViewport | Window | HTMLElement | null>;
declare function getNearestOverflowAncestor(el: Node): HTMLElement;
declare function getOverflowAncestors(el: HTMLElement, list?: OverflowAncestor): OverflowAncestor;
declare function isInView(el: HTMLElement | Window | VisualViewport, ancestor: HTMLElement | Window | VisualViewport): boolean;
declare function isOverflowElement(el: HTMLElement): boolean;
export { type OverflowAncestor, getNearestOverflowAncestor, getOverflowAncestors, isInView, isOverflowElement };