test-nut-ui
Version:
<p align="center"> <img alt="logo" src="https://img11.360buyimg.com/imagetools/jfs/t1/211965/25/7152/22022/61b16785E433119bb/aa41d7a9f7e823f3.png" width="150" style="margin-bottom: 10px;"> </p>
21 lines (20 loc) • 586 B
TypeScript
/// <reference types="react" />
import { GridItemProps } from "../griditem/griditem";
export type GridDirection = "horizontal" | "vertical";
interface GridCardItemProps {
src: string;
text: string;
}
export interface GridCardProps {
list: GridCardItemProps[];
columns: string | number;
gap: string | number;
scrollX: boolean;
center: boolean;
square: boolean;
reverse: boolean;
direction: GridDirection;
onClick: (item: GridItemProps, index: number) => void;
}
export declare const GridCard: (props: GridCardProps) => JSX.Element;
export {};