UNPKG

@superset-ui/core

Version:
12 lines 685 B
/** * This hook encapsulates logic to support truncation of child HTML * elements contained in a fixed-width parent HTML element. Given * a ref to the parent element and optionally a ref to the "+x" * component that shows the number of truncated items, this hook * will return the number of elements that are not fully visible * (including those completely hidden) and whether any elements * are completely hidden. */ declare const useChildElementTruncation: () => readonly [import("react").RefObject<HTMLDivElement>, import("react").RefObject<HTMLDivElement>, number, boolean]; export default useChildElementTruncation; //# sourceMappingURL=useChildElementTruncation.d.ts.map