UNPKG

987 BTypeScriptView Raw
1import * as React from "react";
2import * as StyledSystem from "styled-system";
3import { BoxProps } from "../Box";
4
5export interface IGrid {
6 templateColumns?: StyledSystem.GridTemplateColumnsProps["gridTemplateColumns"];
7 gap?: StyledSystem.GridGapProps["gridGap"];
8 rowGap?: StyledSystem.GridRowGapProps["gridRowGap"];
9 columnGap?: StyledSystem.GridColumnGapProps["gridColumnGap"];
10 autoFlow?: StyledSystem.GridAutoFlowProps["gridAutoFlow"];
11 autoRows?: StyledSystem.GridAutoRowsProps["gridAutoRows"];
12 autoColumns?: StyledSystem.GridAutoColumnsProps["gridAutoColumns"];
13 templateRows?: StyledSystem.GridTemplateRowsProps["gridTemplateRows"];
14 templateAreas?: StyledSystem.GridTemplateAreasProps["gridTemplateAreas"];
15 area?: StyledSystem.GridAreaProps["gridArea"];
16 column?: StyledSystem.GridColumnProps["gridColumn"];
17 row?: StyledSystem.GridRowProps["gridRow"];
18}
19
20export type GridProps = BoxProps & IGrid;
21
22declare const Grid: React.FC<GridProps>;
23
24export default Grid;