Skip to main content

CompactVariantPicker

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

CompactVariantPickerProps

Properties

initialSelectedOptions

initialSelectedOptions: VariantOption[]

maxQuantity?

optional maxQuantity: number

onProductVariantUpdated()

onProductVariantUpdated: (variant, quantity?) => void

Parameters
ParameterType
variantnull | Variant
quantity?number
Returns

void

productOptions

productOptions: ProductOption[]

selectedOptions

selectedOptions: VariantOption[]

variants

variants: Variant[]


CompactVariantPicker()

CompactVariantPicker(props, context?): ReactNode

Parameters

ParameterType
propsCompactVariantPickerProps
context?any

Returns

ReactNode