CompactVariantPicker
@shopify/shop-minis-platform-sdk / components/CompactVariantPicker/CompactVariantPicker
CompactVariantPickerProps
Properties
initialSelectedOptions
initialSelectedOptions:
VariantOption
[]
maxQuantity?
optional
maxQuantity:number
onProductVariantUpdated()
onProductVariantUpdated: (
variant
,quantity
?) =>void
Parameters
Parameter | Type |
---|---|
variant | null | Variant |
quantity ? | number |
Returns
void
productOptions
productOptions:
ProductOption
[]
selectedOptions
selectedOptions:
VariantOption
[]
variants
variants:
Variant
[]
CompactVariantPicker()
CompactVariantPicker(
props
,context
?):ReactNode
Parameters
Parameter | Type |
---|---|
props | CompactVariantPickerProps |
context ? | any |
Returns
ReactNode