@abdizamedmo/livechat-widget-sdk
v1.0.1
Published
LiveChat widget embed SDK — drop the customer widget on any website.
Maintainers
Readme
@aaqyaar/livechat-widget-sdk
Embed the LiveChat customer widget on any website.
GitHub: github.com/aaqyaar/livechat-widget-sdk
npm
npm install @aaqyaar/livechat-widget-sdkimport { init } from "@aaqyaar/livechat-widget-sdk";
const chat = init({
websiteToken: "YOUR_WEBSITE_TOKEN",
// widgetUrl: "https://support.waafi.com/helpline",
});
chat.open();
chat.close();
chat.destroy();Script tag
<script src="https://unpkg.com/@aaqyaar/livechat-widget-sdk/dist/livechat-widget.min.js"></script>
<script>
LiveChatWidget.init({
websiteToken: "YOUR_WEBSITE_TOKEN",
});
</script>Options
| Option | Type | Description |
|---|---|---|
| websiteToken | string | Required. Widget token from the LiveChat settings page. |
| widgetUrl | string | Hosted widget page (https://support.waafi.com/helpline). |
| position | "bottom-right" | "bottom-left" | Floating launcher position. |
| primaryColor | string | Brand color passed into the widget. |
| container | selector or element | Mount inside a box (settings preview, Help Center). |
| embed | boolean | Fullscreen (mobile WebView). |
