<FitButton>
Esta página aún no está disponible en tu idioma.
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>>productstringObligatorioYour product identifier, as synced to TryYourSize. Changing it updates the element in place.
idstringOpcionalclassNamestringOpcionalstyleCSSPropertiesOpcionalonReady(e: ElementEvents["ready"]) => voidOpcionalThe element is shown and connected.
onSize(e: SizeEvent) => voidOpcionalThe shopper got a size for this product: preselect the variant.
onOpen(e: ElementEvents["open"]) => voidOpcionalonClose(e: ElementEvents["close"]) => voidOpcionalonLoadError(e: ElementEvents["loaderror"]) => voidOpcionalOur window could not be reached (network, CSP).
onRecommendation(r: Recommendation) => voidOpcionalThe shopper's recommended size in your size labels: on mount when they are already connected, and on every change. Sizes only. Preselect your picker.
Example
Section titled “Example”<FitButton product="SKU-123" onSize={({ size }) => setSize(size)} />elements.create("button", { product: "SKU-123" }).mount("#find-my-size");¿Te ha resultado útil esta página?
Gracias. Leemos todas las respuestas.