import React from "react"; import { GridOwnProps, PolymorphicWithRef } from "../types"; import { GridBase } from "../base-components"; import { GridItem } from "../GridItem"; type GridProps = PolymorphicWithRef< T, GridOwnProps >; type GridElement = = "div">( props: GridProps ) => React.ReactElement>; const GridContainer: GridElement = React.forwardRef( ( props: GridProps, innerRef: typeof props.ref ) => { const { component = "div", ...rest } = props; return ( ); } ); /** * **A Grid is a two dimensional layout utility that arranges elements in rows and columns.** \ * By default it has 12 columns. */ const Grid = Object.assign(GridContainer, { Item: GridItem }); export default Grid;