Skip to main content

ShoppablePost

@shopify/shop-minis-platform-sdk / templates/ShoppablePosts/components/ShoppablePost

ShoppablePostProps\<ItemType>

Extends

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
ParameterType
paramsobject
params.itemItemType
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
ParameterType
paramsobject
params.itemItemType
Returns

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

Inherited from

ShoppablePostCustomisationProps.renderMediaFooter

shopId

shopId: string


ShoppablePost()

ShoppablePost\<ItemType>(props): ReactNode

Type Parameters

Type ParameterDefault type
ItemType extends ShoppablePostsItemShoppablePostsItem

Parameters

ParameterType
propsShoppablePostProps\<ItemType>

Returns

ReactNode