Typeform can be embedded in server-side rendered Next.js apps using @typeform/embed-react:
import { Widget } from '@typeform/embed-react'
export default function MyPage() {
return <Widget id="<form-id>" style={{ width: '50%' }} className="my-form" />
}
- Run
yarn build
in repository root to build all packages - Then run
yarn start
here to run this demo in browser: http://localhost:8080
See embed-demo repository for standalone examples deployable to CodeSandbox.