Skip to content

Latest commit

 

History

History
 
 

demo-nextjs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Next.js App Demo

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 demo locally

  1. Run yarn build in repository root to build all packages
  2. Then run yarn start here to run this demo in browser: http://localhost:8080

Run demo in CodeSandbox

See embed-demo repository for standalone examples deployable to CodeSandbox.