UNPKG

607 BTypeScriptView Raw
1import React from 'react';
2import type { FC, ReactNode } from 'react';
3import { NativeProps } from '../../utils/native-props';
4export declare type GridProps = {
5 columns: number;
6 gap?: number | string | [number | string, number | string];
7 children?: ReactNode;
8} & NativeProps<'--gap' | '--gap-vertical' | '--gap-horizontal'>;
9export declare const Grid: FC<GridProps>;
10export declare type GridItemProps = {
11 span?: number;
12 onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
13 children?: ReactNode;
14} & NativeProps;
15export declare const GridItem: FC<GridItemProps>;