Skip to main content

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
ParameterType
isFavoritedboolean
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(__namedParameters): null | Element

Parameters

ParameterType
__namedParametersProductLinkProps

Returns

null | Element