hydrogen-variant-form - Build Shopify product variant selection forms
Build and review product option selectors, variant pickers, and add-to-cart forms with @shopify/hydrogen.
Tags
Updated: 2026-11-25Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Compute option availability
- Select product options
- Resolve cached variants
- Register form fields
- Handle cart submission
- Surface cart errors
- Hydrate product data
Inputs
- Shopify product data
- CartStore instance
- Selected option values
- SubmitEvent
Outputs
- Computed option state
- Selected variant state
- Registered form props
- Cart submission
- Cart error state
- Matched line item state
Requirements
- @shopify/hydrogen
- Shopify Storefront API product data
- CartStore integration
- Client-side execution
