useGridLayout
Track the number of rows and columns of an element with a grid layout.
00
Type Definitions
const useGridLayout: <T extends HTMLElement = HTMLDivElement>(ref?: React.RefObject<T> | null) => {
rows: number;
columns: number;
ref: React.RefObject<T>;
};