"ready" event
The element is on the page (the size guide and button at once; the inline element once our window is connected). Fires once per mount.
ready: { elementType: ElementType };Payload
Section titled “Payload”elementType"fit" | "button" | "sizeGuide"RequiredWhich element.
Example
Section titled “Example”guide.on("ready", ({ elementType }) => console.log(elementType, "ready"));<SizeGuide product="SKU-123" onReady={() => setReady(true)} />el.addEventListener("tys:ready", (e) => console.log(e.detail.elementType));Was this page helpful?
Thank you. We read every answer.