<SizeGuide>
Esta página aún no está disponible en tu idioma.
A link-sized “Size guide” with the TryYourSize mark, for the spot next to your size picker. Shows “Your size: M” when the shopper is connected.
Pass a ref to get an ElementHandle (open(), close(), getRecommendation(), getElement()).
SizeGuide: ForwardRefExoticComponent<SizeGuideProps & RefAttributes<ElementHandle>>variant"link" | "button"OpcionalA text link (default) or an outlined button.
labelstringOpcionalYour own words for "Size guide" (otherwise localized).
Example
Section titled “Example”<SizeGuide product="SKU-123" variant="link" onRecommendation={(r) => r.status === "ready" && !touched && setSize(r.size!)}/>elements.create("sizeGuide", { product: "SKU-123", variant: "link" }).mount("#size-guide");<tys-size-guide publishable-key="pk_test_…" product="SKU-123"></tys-size-guide>¿Te ha resultado útil esta página?
Gracias. Leemos todas las respuestas.