UNPKG

goobs-frontend

Version:

A comprehensive React-based libary for building modern web applications

19 lines 945 B
import { default as React } from 'react'; /** * Custom hook to calculate the number of rows that can fit in the available container height * @param containerRef - Reference to the container element * @param headerHeight - Height of the header element (default: 60px) * @param footerHeight - Height of the footer element (default: 56px) * @param rowHeight - Height of each row (default: 53px) * @param minRows - Minimum number of rows to display (default: 5) * @param maxRows - Maximum number of rows to display (default: 100) * @returns The number of rows that can fit in the available height */ export declare function useAutoRowHeight(containerRef: React.RefObject<HTMLDivElement | null>, { headerHeight, footerHeight, rowHeight, minRows, maxRows, }?: { headerHeight?: number; footerHeight?: number; rowHeight?: number; minRows?: number; maxRows?: number; }): number; //# sourceMappingURL=useAutoRowHeight.d.ts.map