Web-embed API
Embed your flows within other webpages, with communication between the embed and the parent page
Usage
# yarn add @formsort/web-embed-api
# npm install @formsort/web-embed-api --saveDocumentation
const embed = FormsortWebEmbed(document.body);interface IFormsortWebEmbedConfig {
useHistoryAPI?: boolean; // Default: false
autoHeight?: boolean; // Default: false
style?: {
width?: CSSStyleDeclaration['width'];
height?: CSSStyleDeclaration['height'];
};
authentication?: {
idToken?: string; // ID Token for authenticated flows
};
}setSize(width: number, height: number) => void
Event listeners
Development
Last updated
Was this helpful?