import * as React from 'react'; import * as CSS from 'csstype'; export declare enum GridDisplay { grid = "grid", inlineGrid = "inline-grid" } export declare enum GridJustifyItems { start = "start", end = "end", center = "center", stretch = "stretch" } export declare enum GridJustifyContent { start = "start", end = "end", center = "center", stretch = "stretch", spaceAround = "space-around", spaceBetween = "space-between", spaceEvenly = "space-evenly" } export declare enum GridAlignItems { start = "start", end = "end", center = "center", stretch = "stretch" } export declare enum GridAlignContent { start = "start", end = "end", center = "center", stretch = "stretch", spaceAround = "space-around", spaceBetween = "space-between", spaceEvenly = "space-evenly" } export declare enum GridItemJustifySelf { start = "start", end = "end", center = "center", stretch = "stretch" } export declare enum GridItemAlignSelf { start = "start", end = "end", center = "center", stretch = "stretch" } export declare enum GridAutoFlow { row = "row", column = "column", rowDense = "row-dense", columnDense = "column-dense" } export interface GridProps extends React.HTMLAttributes { /** * @children required */ children: React.ReactNode; /** * Defines the display style property. Sets grid or inline-grid. * @default GridDisplay.grid */ gridDisplay?: GridDisplay; /** * Set the columns in the grid. */ gridTemplateColumns?: CSS.Property.GridTemplateColumns; /** * Set the rows in the grid. */ gridTemplateRows?: CSS.Property.GridTemplateRows; /** * Set the areas in the grid. */ gridTemplateAreas?: CSS.Property.GridTemplateAreas; /** * Set the space between columns and / or rows in the grid. */ gridGap?: CSS.Property.GridGap; /** * Align grid items along the inline (row) axis. Applies to all items in the grid. */ gridJustifyItems?: GridJustifyItems; /** * Sets the alignment of the grid within the grid container along the inline row axis. */ gridJustifyContent?: GridJustifyContent; /** * Align grid items along the block (column) axis. Applies to all items in the grid. */ gridAlignItems?: GridAlignItems; /** * Sets the alignment of the grid within the grid container along the block (column) axis. */ gridAlignContent?: GridAlignContent; /** * If you have grid items that you don’t explicitly place on the grid, the auto-placement algorithm kicks in to automatically place the items. */ gridAutoFlow?: GridAutoFlow; /** * Semantic HTML tag to be used for the Grid * Examples: \`nav\`, \`footer\`, \`main\`, \`figure\`, \`aside\`, etc. * @default \`div\` */ as?: string; } export interface GridItemProps extends React.HTMLAttributes { /** * @children required */ children: React.ReactNode; /** * Defines the span of a column on a grid item. */ gridColumn?: CSS.Property.GridColumn; /** * Defines the span of a row on a grid item. */ gridRow?: CSS.Property.GridRow; /** * Define which grid area a grid item belongs to. */ gridArea?: CSS.Property.GridArea; /** * Aligns the grid item within the cell along the inline (row) axis. Applies to a grid item inside a single cell. */ gridItemJustifySelf?: GridItemJustifySelf; /** * Aligns the grid item within the cell along the block (column) axis. Applies to a grid item inside a single cell. */ gridItemAlignSelf?: GridItemAlignSelf; /** * Semantic HTML tag to be used for the GridItem * Examples: \`nav\`, \`footer\`, \`main\`, \`figure\`, \`aside\`, etc. * @default \`div\` */ as?: string; } export declare const Grid: import("@emotion/styled").StyledComponent<{ theme?: import("@emotion/react").Theme; as?: React.ElementType; } & GridProps, React.DetailedHTMLProps, HTMLDivElement>, {}>; export declare const GridItem: import("@emotion/styled").StyledComponent<{ theme?: import("@emotion/react").Theme; as?: React.ElementType; } & GridItemProps, React.DetailedHTMLProps, HTMLDivElement>, {}>;