Skip to main content
Use web components when you need to embed Fanfare into static HTML, a CMS, or a host framework where mounting React is not practical.

Install

Register the element

Call registerWebComponents() once before rendering Fanfare custom elements.

Render the widget

<fanfare-experience-widget> is the supported custom element for the full journey. It renders the same public journey states as the React ExperienceWidget.

Attributes

Theme and copy

Use valid JSON for theme-config and translations.

Events

Web component events bubble and are composed, so they can be handled by the host page.
Avoid sending grant or raw snapshot details to third-party logs or analytics.