UNPKG

845 BTypeScriptView Raw
1import * as React from "react";
2import { ResponsiveValue, GridProps } from "styled-system";
3import { BoxProps } from "../Box";
4
5interface ISimpleGrid {
6 /**
7 * The width at which child elements will break into columns. Pass a number for pixel values or a string for any other valid CSS length.
8 */
9 minChildWidth?: ResponsiveValue<React.CSSProperties["minWidth"]>;
10 /**
11 * The number of columns
12 */
13 columns?: ResponsiveValue<number>;
14 /**
15 * The gap between the grid items
16 */
17 spacing?: GridProps["gridGap"];
18 /**
19 * The column gap between the grid items
20 */
21 spacingX?: GridProps["gridGap"];
22 /**
23 * The row gap between the grid items
24 */
25 spacingY?: GridProps["gridGap"];
26}
27
28export type SimpleGridProps = BoxProps & ISimpleGrid;
29
30declare const SimpleGrid: React.FC<SimpleGridProps>;
31
32export default SimpleGrid;