@xapp/chat-widget

XAPP Chat Widget

Usage no npm install needed!

<script type="module">
  import xappChatWidget from 'https://cdn.skypack.dev/@xapp/chat-widget';
</script>

README

@xapp/chat-widget

A chat widget used by XAPP AI's OC Studio as a built-in channel.

Install

npm i @xapp/chat-widget redux-thunk redux react-redux --production

Usage

import { ChatWidget } from "@xapp/chat-widget";
import "@xapp/chat-widget/dist/index.css";

function RenderWidget() {
    return <ChatWidget accountKey={"123"} />;
}

Styling

Use theme prop to style widget

const theme: WidgetTheme = {};
return <ChatWidget accountKey={"123"} theme={theme} />;