UNPKG

@wordpress/dom

Version:
11 lines 592 B
/** * Given a DOM node, finds the closest scrollable container node or the node * itself, if scrollable. * * @param {Element | null} node Node from which to start. * @param {?string} direction Direction of scrollable container to search for ('vertical', 'horizontal', 'all'). * Defaults to 'vertical'. * @return {Element | undefined} Scrollable container node, if found. */ export default function getScrollContainer(node: Element | null, direction?: string | null): Element | undefined; //# sourceMappingURL=get-scroll-container.d.ts.map