Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@formsort/react-embed
Advanced tools
Embed Formsort flows within react components
Add @formsort/react-embed to your project by executing npm install @formsort/react-embed
or yarn add @formsort/react-embed
.
Here's an example of basic usage:
import React from 'react';
import EmbedFlow from '@formsort/react-embed';
const EmbedFlowExample: React.FunctionComponent = () => (
<div>
<EmbedFlow
clientLabel='formsort'
flowLabel='onboarding'
variantLabel='main'
embedConfig={{
style: {
width: '100%',
height: '100%',
}
}}
/>
</div>
);
You can add event listeners to flows like flowloaded
, redirect
etc. See all event listeners
Prop name | Description | Required | Example values |
---|---|---|---|
clientLabel | client name | yes | formsort |
flowLabel | flow name | yes | onboarding |
variantLabel | variant name | no | main |
embedConfig | config passed to the underlying FormsortWebEmbed | no | { style: { height: '100%' } } |
flowloaded | event listener | no | () => { console.log('flow loaded') } |
flowclosed | event listener | no | () => { console.log('flow closed') } |
flowfinalized | event listener | no | () => { console.log('flow finalized') } |
redirect | event listener | no | (url: string) => { console.log('redirecting to:', url) } |
npm run test
npm publish
FAQs
Embed formsort flows in react components
The npm package @formsort/react-embed receives a total of 947 weekly downloads. As such, @formsort/react-embed popularity was classified as not popular.
We found that @formsort/react-embed demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.