--- title: getProductOptions description: >- Returns a product options array with its relevant information about the variant. This function supports combined listing products and products with 2000 variants limit. api_version: 2025-07 api_name: hydrogen-react source_url: html: >- https://shopify.dev/docs/api/hydrogen-react/latest/utilities/getproductoptions md: >- https://shopify.dev/docs/api/hydrogen-react/latest/utilities/getproductoptions.md --- # get​Product​Options Returns a product options array with its relevant information about the variant. This function supports combined listing products and products with 2000 variants limit. Examples ### Examples * #### Example code ##### Description I am the default example ##### JavaScript ```jsx import React from 'react'; import {getProductOptions} from '@shopify/hydrogen-react'; // Make sure you are querying for the following fields: // - product.handle // - product.encodedVariantExistence // - product.encodedVariantAvailability // - product.options.name // - product.options.optionValues.name // - product.options.optionValues.firstSelectableVariant // - product.selectedOrFirstAvailableVariant // - product.adjacentVariants // // For any fields that are ProductVariant type, make sure to query for: // - variant.product.handle // - variant.selectedOptions.name // - variant.selectedOptions.value export default function ProductForm() { const product = { /* Result from querying the SFAPI for a product */ }; const productOptions = getProductOptions(product); return ( <> {productOptions.map((option) => (