How to use the @typeform/embed.makePopup function in @typeform/embed

To help you get started, we’ve selected a few @typeform/embed examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alexgarces / react-typeform-embed / src / components / ReactTypeformEmbed / index.js View on Github external
const options = {
      hideHeaders,
      hideFooter,
      opacity,
      buttonText,
      mode,
      autoOpen,
      autoClose,
      onSubmit
    };

    // Popup Mode
    if (popup) {
      // Load Typeform embed popup
      this.typeform = typeformEmbed.makePopup(url, options);

      // Widget Mode (default)
    } else {
      const elm = this.typeformElm;

      // Load Typeform embed widget
      typeformEmbed.makeWidget(elm, url, options);
    }
  }

@typeform/embed

**Typeform/embed** is the core embed library that lets you embed typeforms to your website using vanilla JavaScript.

MIT
Latest version published 6 days ago

Package Health Score

89 / 100
Full package analysis

Popular @typeform/embed functions