@typeform/embed
Version:
**Typeform/embed** is the core embed library that lets you embed typeforms to your website using vanilla JavaScript.
15 lines (14 loc) • 476 B
TypeScript
import { EmbedType, UrlOptions, ActionableOptions, IframeOptions } from '../../base';
type CreateIframe = {
formId: string;
domain?: string;
options: CreateIframeOptions;
};
type CreateIframeOptions = UrlOptions & ActionableOptions & IframeOptions;
export declare const createIframe: (type: EmbedType, { formId, domain, options }: CreateIframe) => {
iframe: HTMLIFrameElement;
embedId: string;
refresh: () => void;
focus: () => void;
};
export {};