<SizeGuide>
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"OptionalA text link (default) or an outlined button.
labelstringOptionalYour 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>Was this page helpful?
Thank you. We read every answer.