Skip to main content

Grid

@shopify/shop-minis-platform-sdk / components/Grid

GridRef\<ItemT>

GridRef\<ItemT>: FlatList\<ItemPair\<ItemT>>

Type Parameters

Type Parameter
ItemT

GridRenderItem()\<ItemT>

GridRenderItem\<ItemT>: (info) => React.ReactElement | null

Type Parameters

Type Parameter
ItemT

Parameters

ParameterType
infoProductRenderItemInfo\<ItemT>

Returns

React.ReactElement | null


Grid()

Grid\<ItemT>(props): ReactElement\<any, string | JSXElementConstructor\<any>>

Type Parameters

Type Parameter
ItemT extends GridData

Parameters

ParameterType
propsOmit\<FlatListProps\<ItemPair\<ItemT>>, "data" | "renderItem"> & object & object

Returns

ReactElement\<any, string | JSXElementConstructor\<any>>