ElementHandle
What a ref on <SizeGuide>, <FitButton> or <FitElement> gives you.
interface ElementHandleMethods
Section titled “Methods”openvoidRequiredOpens the measuring window.
closevoidRequiredgetElementTysElement | nullRequiredThe underlying SDK element (null before mount).
getRecommendationPromise<Recommendation>RequiredThe shopper's recommended size once known.
Example
Section titled “Example”const guide = useRef<ElementHandle>(null);
<SizeGuide ref={guide} product="SKU-123" /><button onClick={() => guide.current?.open()}>Size help</button>Was this page helpful?
Thank you. We read every answer.