Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@typeform/embed

Package Overview
Dependencies
Maintainers
2
Versions
262
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@typeform/embed

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

  • 5.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created

What is @typeform/embed?

@typeform/embed is an npm package that allows you to easily embed Typeform forms into your web applications. It provides various methods to integrate Typeform forms, including pop-ups, sliders, and inline embeds, making it versatile for different use cases.

What are @typeform/embed's main functionalities?

Inline Embed

This feature allows you to embed a Typeform directly into a specified container on your webpage. You need to provide the Typeform ID and the container element where the form should be rendered.

const { createWidget } = require('@typeform/embed');

createWidget('YOUR_TYPEFORM_ID', {
  container: document.querySelector('#typeform-container')
});

Popup Embed

This feature allows you to create a Typeform that opens in a popup when triggered. You need to provide the Typeform ID and set up an event listener to open the popup.

const { createPopup } = require('@typeform/embed');

const openPopup = createPopup('YOUR_TYPEFORM_ID');

document.querySelector('#open-popup-button').addEventListener('click', () => openPopup());

Slider Embed

This feature allows you to create a Typeform that slides in from the side of the screen. You need to provide the Typeform ID and set up an event listener to open the slider.

const { createSlider } = require('@typeform/embed');

const openSlider = createSlider('YOUR_TYPEFORM_ID');

document.querySelector('#open-slider-button').addEventListener('click', () => openSlider());

Other packages similar to @typeform/embed

Keywords

FAQs

Package last updated on 17 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc