embed icon indicating copy to clipboard operation
embed copied to clipboard

NextJS Typeform Embedding

Open SohamNagi opened this issue 1 year ago • 2 comments

image

NextJS integration doesn't seem to work whether I use a client side page or a server side page

SohamNagi avatar Apr 24 '24 17:04 SohamNagi

Are you using AppRouter? I think we have tested with Pages router only.

mathio avatar Apr 24 '24 18:04 mathio

Have you tried to wrap the Typeform component in a custom component with the use client; on top?

JacopoBonta avatar Jun 21 '24 07:06 JacopoBonta

Hi @SohamNagi . I dont have much experience with the Next.js App Router, but it looks like you need to use client component.

In a recent PR https://github.com/Typeform/embed/pull/657 I am updating demo-nextjs to latest version of next and also including examples for the App Router. Hope this helps 🤞

mathio avatar Jul 16 '24 15:07 mathio