ProductOptionsProvider component sets up a context with state that tracks the selected variant and options. Descendents of this component can use the
Example codeAnchor link to section titled "Example code"
||An object with fields that correspond to the Storefront API's Product object.|
||The initially selected variant.
The following logic applies to
Component typeAnchor link to section titled "Component type"
ProductOptionsProvider component is a client component, which means that it renders on the client. For more information about component types, refer to React Server Components.