@atlaskit/dynamic-table
Version:
A dynamic table displays rows of data with built-in pagination, sorting, and re-ordering functionality.
13 lines (12 loc) • 537 B
TypeScript
import React, { type Ref } from 'react';
export interface State {
refWidth: number;
refHeight: number;
}
export interface WithDimensionsProps {
innerRef?: Ref<HTMLTableCellElement | HTMLTableRowElement>;
isRanking: boolean;
refWidth: number;
refHeight: number;
}
export default function withDimensions<WrappedComponentProps extends WithDimensionsProps>(WrappedComponent: React.ComponentType<WrappedComponentProps>): React.ComponentClass<Omit<WrappedComponentProps, 'refWidth' | 'refHeight' | 'innerRef'>, State>;