UNPKG

@rkosafo/cai.components

Version:

This package is under development and not ready for public use.

27 lines (26 loc) 770 B
export interface TableHeightConfig { headerOffset?: number; footerOffset?: number; additionalOffset?: number; } /** * Calculate table height based on window dimensions and offsets */ export declare function calculateTableHeight(config?: TableHeightConfig): number; /** * Create a reactive table height store that updates on window resize */ export declare function createTableHeightStore(config?: TableHeightConfig): { readonly height: number; update: () => void; dispose: () => void; }; /** * Get table height for specific use cases with predefined offsets */ export declare const tableHeightPresets: { default: () => number; compact: () => number; spacious: () => number; custom: (config: TableHeightConfig) => number; };