Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
react-typeform-embed
Advanced tools
A React wrapper for [Typeform Embed SDK](https://developer.typeform.com/embed/).
A React wrapper for Typeform Embed SDK.
Important: Please be aware that if you are updating this package from a version previous to v.1.0
you will need to apply changes in your implementation.
First install the package
yarn add react-typeform-embed
There are five different embed types that you can import as components.
You need to provide the form id as id prop.
You can get the id from the public URL of your form:
https://form.typeform.com/to/<form-id>
Or from the admin panel URL:
https://admin.typeform.com/form/<form-id>
You can also use any other option and callback (except container
) from the official SDK passing them as props. Find more info here:
With the widget embed type you can embed your form inline, in a DOM element.
import React from 'react';
import { Widget } from 'react-typeform-embed';
const App = () => {
render() {
return <Widget id="njdbt5" height={500} />;
}
}
With the popup and slider embed types you can embed the form in a modal. You need to pass as children the element/s that will open the modal when clicked.
import React from 'react';
import { Popup /* or Slider */ } from 'react-typeform-embed';
const App = () => {
return (
<Popup id="njdbt5" size={80}>
<button>Open Popup</button>
</Popup>
);
}
These other modal embed types work exactly as the Popup component but, since they are already visible and clickable, passing children element/s is optional.
import React from 'react';
import { Sidetab /* or Popover */ } from 'react-typeform-embed';
const App = () => {
return <Sidetab id="njdbt5">
}
See the source for more examples.
See a live demo, or run:
git clone https://github.com/alexgarces/react-typeform-embed
cd react-typeform-embed
yarn
yarn start
open http://localhost:3000
Code released under the MIT license.
FAQs
A React wrapper for [Typeform Embed SDK](https://developer.typeform.com/embed/).
The npm package react-typeform-embed receives a total of 5,260 weekly downloads. As such, react-typeform-embed popularity was classified as popular.
We found that react-typeform-embed demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.