Ir al contenido

<FitButton>

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

Component@tryyoursize/react

A compact “Find my size” button that opens the measuring window.

Pass a ref to get an ElementHandle (open(), close(), getRecommendation(), getElement()).

FitButton: ForwardRefExoticComponent<ElementProps & RefAttributes<ElementHandle>>
productstringObligatorio

Your product identifier, as synced to TryYourSize. Changing it updates the element in place.

idstringOpcional
classNamestringOpcional
styleCSSPropertiesOpcional
onReady(e: ElementEvents["ready"]) => voidOpcional

The element is shown and connected.

onSize(e: SizeEvent) => voidOpcional

The shopper got a size for this product: preselect the variant.

onOpen(e: ElementEvents["open"]) => voidOpcional
onClose(e: ElementEvents["close"]) => voidOpcional
onLoadError(e: ElementEvents["loaderror"]) => voidOpcional

Our window could not be reached (network, CSP).

onRecommendation(r: Recommendation) => voidOpcional

The shopper's recommended size in your size labels: on mount when they are already connected, and on every change. Sizes only. Preselect your picker.

<FitButton product="SKU-123" onSize={({ size }) => setSize(size)} />

¿Te ha resultado útil esta página?