ProductLink
@shopify/shop-minis-platform-sdk / components/ProductLink
ProductLinkProps
Properties
attribution?
optional
attribution:LineItemAttribution
Attribution used for user actions in the product details screen triggered by this component
onFavoriteToggled()?
optional
onFavoriteToggled: (isFavorited
) =>void
Optional callback triggered when favorite state is toggled.
Parameters
Parameter | Type |
---|---|
isFavorited | boolean |
Returns
void
onPress()?
optional
onPress: () =>void
Optional callback triggered when the component is pressed
Returns
void
product
product:
CustomProductLinkProps
productVariantId?
optional
productVariantId:string
sectionId?
optional
sectionId:string
Used for impression tracking
shopId?
optional
shopId:string
trackingDisabled?
optional
trackingDisabled:boolean
Disables impression tracking
CustomProductLinkProps
CustomProductLinkProps:
ProductWithDefaultVariant
|ProductWithVariants
&FlatReviewAnalytics
|NestedReviewAnalytics
ProductLink()
ProductLink(
__namedParameters
):null
|Element
Parameters
Parameter | Type |
---|---|
__namedParameters | ProductLinkProps |
Returns
null
| Element