element.open()
Opens the TryYourSize window for this element’s product, as the element itself does on click. Use it from your own button or link.
open(): void;Example
Section titled “Example”document.querySelector("#my-size-link").addEventListener("click", (e) => { e.preventDefault(); guide.open();});const ref = useRef<ElementHandle>(null);<SizeGuide ref={ref} product="SKU-123" /><button onClick={() => ref.current?.open()}>Find my size</button>Was this page helpful?
Thank you. We read every answer.