Skip to main content

useVariantPicker

@shopify/shop-minis-platform-sdk / components/VariantPicker/hooks/useVariantPicker

PickerOption

Extends

Properties

availability

availability: VariantAvailability

imageUrl?

optional imageUrl: string

name

name: string

Inherited from

VariantOption.name

selected

selected: boolean

value

value: string

Inherited from

VariantOption.value

variantId?

optional variantId: string


useVariantPicker()

useVariantPicker(__namedParameters): UseVariantPicker

Parameters

ParameterType
__namedParametersUseVariantPickerProps

Returns

UseVariantPicker