ChatBox

Domain

Floating chat widget that anchors to the bottom-right of the screen. Includes a FAB toggle, collapsible panel, scrollable message list with typing indicator, and an auto-growing textarea input.

With initial messages

Preview

Support Chat

We typically reply in a few minutes

Hi there! How can I help you today?
10:02
I have a question about my order.
10:03
Code
<%- include('modules/domain/common/chat/ChatBox', {
  open: true,
  title: 'Support Chat',
  subtitle: 'We typically reply in a few minutes',
  messages: [
    { id: 'm1', role: 'agent', text: 'Hi there! How can I help you today?' },
    { id: 'm2', role: 'user',  text: 'I have a question about my order.' }
  ]
}) %>

Empty / initial state

Preview

Sales Chat

Ask us anything

Start the conversation

Code
<%- include('modules/domain/common/chat/ChatBox', {
  open: true,
  title: 'Sales Chat',
  subtitle: 'Ask us anything',
  messages: []
}) %>
Source modules/domain/common/chat/ChatBox.ejs