Typeform can be embedded with 2 lines of code:
<div data-tf-widget="<form id>"></div>
<script src="//embed.typeform.com/next/embed.js"></script>
For more control you can use provided javascript methods:
<script src="//embed.typeform.com/next/embed.js"></script>
<link rel="stylesheet" href="//embed.typeform.com/next/css/popup.css" />
<script>
const { open, close, toggle, refresh } = window.tf.createPopup('<form id>')
</script>
- Run
yarn build
in repository root to build all packages - Then run
yarn start
here to run this demo in browser: http://localhost:9090
See embed-demo repository for standalone examples deployable to CodeSandbox.