import { GridAreaProps } from "./GridArea.cjs"; import { alignment } from "../utils/styleProps.cjs"; import { HeightProp, SpaceProp, SpacingTokens } from "@marigold/system"; import { ReactNode } from "react"; import { AriaRegionProps } from "@marigold/types"; export type TemplateValue = 'none' | 'auto' | 'min-content' | 'max-content' | (string & {}) | number; export interface GridProps extends AriaRegionProps { /** * Set the spacing between child elements. */ space?: SpaceProp['space']; /** * The height of the grid container. */ height?: HeightProp['height']; /** * Specifies the named grid areas, much like `grid-template-areas`. */ areas: string[]; /** * Specifies the width of each column in the grid. */ columns: TemplateValue[]; /** * Specifies the height of each rows in the grid. */ rows: TemplateValue[]; /** * Children of the layout. */ children?: ReactNode; /** * Horizontal alignment for the children. */ alignX?: keyof typeof alignment.horizontal.alignmentX; /** * Vertical alignment for the children. */ alignY?: keyof typeof alignment.horizontal.alignmentY; } export declare const Grid: { ({ children, areas, columns, rows, alignX, alignY, height, space, ...props }: GridProps): import("react").JSX.Element; Area: ({ name, children }: GridAreaProps) => import("react").JSX.Element; };