Using QuikChat as an ES module with import. Same API, same features — just a different loading mechanism.
import quikchat from './quikchat.esm.min.js';
const chat = new quikchat("#chat",
(chat, msg) => {
chat.messageAddNew(msg, "me", "right");
chat.messageAddNew("Got it!", "bot", "left");
},
{ theme: "quikchat-theme-light",
titleArea: { title: "My Chat", align: "left", show: true } }
);