Skip to main content

TouchableProduct

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

TouchableProductProps

TouchableProductProps: PropsWithChildren\<object>

Type declaration

attribution?

optional attribution: LineItemAttribution

Attribution used for user actions in the product details screen triggered by this component

discountCode?

optional discountCode: string

Discount code to be applied at checkout

includedProductVariantGIDs?

optional includedProductVariantGIDs: string[]

includedProductVariantIds?

optional includedProductVariantIds: string[]

Deprecated

use includedProductVariantGIDs instead

onPress()?

optional onPress: () => void

Optional callback triggered when the component is pressed

Returns

void

product

product: ProductCardFragmentData | ProductLinkFragmentData

productVariantId?

optional productVariantId: string

If present, this variant will be initially selected


TouchableProduct()

TouchableProduct(__namedParameters): Element

Parameters

ParameterType
__namedParametersTouchableProductProps

Returns

Element