@typeform/embed
Version:
**Typeform/embed** is the core embed library that lets you embed typeforms to your website using vanilla JavaScript.
28 lines (27 loc) • 867 B
TypeScript
import { BehavioralType } from './behavioral-type';
export type BehavioralOptions = {
/**
* Your typeform will launch based on behavioral triggers.
*
* @type {BehavioralType}
*/
open?: BehavioralType;
/**
* Value to complement the "open" option:
* - load: not used
* - exit: pixels for the height of trigger area
* - scroll: % of page to be scrolled
* - time: milliseconds to wait before launching
*/
openValue?: number;
/**
* When the user closes the modal, it will not automatically reopen on next page visit.
*/
preventReopenOnClose?: boolean;
/**
* Do not open if there already is a modal with typeform open.
* - all: any other typeform
* - same: only if the form is the same as this one (same form ID)
*/
respectOpenModals?: 'all' | 'same';
};