UNPKG

flex-area-grid

Version:
24 lines (23 loc) 1.14 kB
import { FunctionComponentElement } from "react"; import { TFlexGridItem } from "./FlexGridItem"; import { TMatrix } from "./utils"; import { TFlexAlign, TFlexJustify } from "./types"; /** * Generates the table rows. * @param {TMatrix[][]} matrix - Generated grid matrix. * @param {FunctionComponentElement<TFlexGridItem>[]} children - The grid elements. * @param {number} gridRowGap * @param {TFlexAlign} cellAlign * @param {TFlexJustify} cellJustify * @param {number | undefined} cellHeight * @return {JSX.Element[]} - Returns table rows. */ declare function getTableRows(matrix: TMatrix[][], children: FunctionComponentElement<TFlexGridItem>[], gridRowGap: number, cellAlign: TFlexAlign, cellJustify: TFlexJustify, cellHeight?: number): JSX.Element[]; /** * Generates the table col. * @param {number} columnsNumber - The number of grid columns. * @param {number[] | undefined } columnsWidth - Width of each column. * @return {JSX.Element[]} - Returns table cl. */ declare function getTableCol(columnsNumber: number, columnsWidth?: number[]): JSX.Element[]; export { getTableRows, getTableCol };