Skip to Content

Embed

Every embed export of @appfunnel-dev/sdk, generated from the SDK source. Signatures and descriptions are exact; for how these fit together, see the guides.

Script

function · embed/script.tsx

Script({ src, strategy, id, async, defer, nonce, attributes, onLoad, onError, }: ScriptProps): null

Injects a third-party script once. Renders nothing. Persists across navigation (the tag is never removed on unmount — third-party widgets should stay loaded).

ScriptProps

interface · embed/script.tsx

export interface ScriptProps { src: string strategy?: 'afterInteractive' | 'lazyOnload' id?: string async?: boolean defer?: boolean nonce?: string attributes?: Record<string, string> onLoad?: () => void onError?: () => void }
Last updated on