ShoppablePost
@shopify/shop-minis-platform-sdk / templates/ShoppablePosts/components/ShoppablePost
ShoppablePostProps\<ItemType>
Extends
ShoppablePostCustomisationProps
\<ItemType
>
Type Parameters
Type Parameter |
---|
ItemType |
Properties
post
post:
ItemType
renderMedia()?
optional
renderMedia: (params
) =>null
|ReactElement
\<any
,string
|JSXElementConstructor
\<any
>>
Render function to overwrite the media component of each post. Useful if you want to use the template to render other kinds of media like videos.
Parameters
Parameter | Type |
---|---|
params | object |
params.item | ItemType |
Returns
null
| ReactElement
\<any
, string
| JSXElementConstructor
\<any
>>
Inherited from
ShoppablePostCustomisationProps
.renderMedia
renderMediaFooter()?
optional
renderMediaFooter: (params
) =>null
|ReactElement
\<any
,string
|JSXElementConstructor
\<any
>>
Render function to overwrite the footer of each post
Parameters
Parameter | Type |
---|---|
params | object |
params.item | ItemType |
Returns
null
| ReactElement
\<any
, string
| JSXElementConstructor
\<any
>>
Inherited from
ShoppablePostCustomisationProps
.renderMediaFooter
shopId
shopId:
string
ShoppablePost()
ShoppablePost\<
ItemType
>(props
):ReactNode
Type Parameters
Type Parameter | Default type |
---|---|
ItemType extends ShoppablePostsItem | ShoppablePostsItem |
Parameters
Parameter | Type |
---|---|
props | ShoppablePostProps \<ItemType > |
Returns
ReactNode