UNPKG

hightable

Version:

A dynamic windowed scrolling table component for react

19 lines (18 loc) 756 B
import { CSSProperties, ReactNode } from 'react'; interface WidthSetterOptions { columnIndex: number; width?: number; } interface ColumnWidthContextType { getColumnWidth?: (columnIndex: number) => number | undefined; getColumnStyle?: (columnIndex: number) => CSSProperties; setColumnWidth?: (options: WidthSetterOptions) => void; } export declare const ColumnWidthContext: import("react").Context<ColumnWidthContextType>; interface ColumnWidthProviderProps { localStorageKey?: string; children: ReactNode; } export declare function ColumnWidthProvider({ children, localStorageKey }: ColumnWidthProviderProps): import("react/jsx-runtime").JSX.Element; export default function useColumnWidth(): ColumnWidthContextType; export {};