UNPKG

antd-mobile

Version:
16 lines (15 loc) 607 B
import React from 'react'; import type { FC, ReactNode } from 'react'; import { NativeProps } from '../../utils/native-props'; export declare type GridProps = { columns: number; gap?: number | string | [number | string, number | string]; children?: ReactNode; } & NativeProps<'--gap' | '--gap-vertical' | '--gap-horizontal'>; export declare const Grid: FC<GridProps>; export declare type GridItemProps = { span?: number; onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void; children?: ReactNode; } & NativeProps; export declare const GridItem: FC<GridItemProps>;