hydrogen-variant-form - Build Hydrogen product variant selection forms
Build and review Shopify Hydrogen product variant selectors and add-to-cart forms using client-side product and cart state.
Tags
Updated: 2026-11-25Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Compute option existence and availability
- Resolve cached variants
- Validate option selections
- Track cart matches and errors
- Register product form fields
- Delegate add-to-cart submission
- Hydrate changed product data
- Guide product route placement
Inputs
- Shopify product data
- CartStore instance
- Selected product options
- Form field values
- Framework route conventions
Outputs
- Computed option states
- Variant selection results
- Registered form properties
- Cart submission events
- Reactive cart errors
- Matched cart line state
Requirements
- @shopify/hydrogen
- Storefront API product data
- CartStore integration
- Framework-specific bindings when applicable
