Ir al contenido

ElementHandle

Esta página aún no está disponible en tu idioma.

Type@tryyoursize/react

What a ref on <SizeGuide>, <FitButton> or <FitElement> gives you.

interface ElementHandle
openvoidObligatorio

Opens the measuring window.

closevoidObligatorio
getElementTysElement | nullObligatorio

The underlying SDK element (null before mount).

getRecommendationPromise<Recommendation>Obligatorio

The shopper's recommended size once known.

const guide = useRef<ElementHandle>(null);
<SizeGuide ref={guide} product="SKU-123" />
<button onClick={() => guide.current?.open()}>Size help</button>

¿Te ha resultado útil esta página?