@fluentui/react-northstar
Version:
A themable React component library.
13 lines (12 loc) • 423 B
TypeScript
/**
* Returns the parent node or the host of the node argument.
* @param node - DOM node.
* @returns - parent DOM node.
*/
export declare const getParentNode: (node: HTMLElement) => HTMLElement;
/**
* Returns the first scrollable parent of the given element.
* @param node - DOM node.
* @returns - the first scrollable parent.
*/
export declare const getScrollParent: (node: Document | HTMLElement) => HTMLElement;