UNPKG

baseui

Version:

A React Component library implementing the Base design language

17 lines (16 loc) 731 B
import type { BlockProps, Responsive, Scale } from '../block'; import type { ElementType } from 'react'; export type FlexGridProps<T extends ElementType = ElementType> = { /** Number of equal-width columns to allow for */ flexGridColumnCount?: Responsive<number>; /** Grid gap between columns */ flexGridColumnGap?: Responsive<Scale>; /** Grid gap between rows */ flexGridRowGap?: Responsive<Scale>; } & BlockProps<T>; export type FlexGridItemProps<T extends ElementType = ElementType> = { /** Index of item in FlexGrid, used to determine gaps **/ flexGridItemIndex?: number; /** Total count of items in FlexGrid, used to determine gaps **/ flexGridItemCount?: number; } & FlexGridProps<T>;