maia-chat-widget
v0.0.19
Published
Web component for MAIA's chat.
Downloads
4
Readme
maia-chat-element
Web component for MAIA's chat.
Installation
$ npm install --save maia-chat-widget
Usage
Import as ES module:
import "maia-chat-widget"
With a script tag:
<script type="module" src="./node_modules/maia-chat-widget/dist/maia-chat.umd.js"></script>
Importing Ionicons library is required:
<script type="module" src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"></script>```
Markup
<maia-chat conversation-manager-domain="<URL>" conversation-manager-token="<TOKEN>" locale="<LOCALE>"></maia-chat>
Properties
| Property | Description | Required |
|-----------------------------|-----------------------------------------------------|----------|
| conversation-manager-domain | Conversation Manager domain | yes |
| conversation-manager-token | Token to authenticate with the Conversation Manager | yes |
| locale | Language to display texts. Options: en
, es
| no |