Add the Open widget to your website and mobile app
script
tags to your HTML file inside the head
tag.
@opencx/widget-core
) exports the vanilla JS widget engine, which can be used in any JavaScript framework. You’ll have to build your own UI and screen routers from scratch, as we do not export any UI primitives.
If you’re building in React, you can make use of the React adapter package (@opencx/widget-react-headless
) which exports a context provider and some helper hooks.
Committing to a custom widget implementation is serious business, and should only be attempted if there is adequate engineering capacity for implementation and continuous maintenance.
@opencx/widget-react-headless
) on how to create a framework-specific data layer from the vanilla JS engine.@opencx/widget-react
) on how to go about the interaction logic; collecting user data, navigating between screens, sending messages, handling loading states, etc.