inbox
The store's live chat: its state and actions, the complete widget and the parts it is built from.
On this page
import { … } from '@poltura/theme-sdk/inbox';
| Name | What it is |
|---|
useInbox | The chat's view and actions: whether it is open, online or unread, the conversation, the help search and the merchant's wording and look. |
| Name | What it is |
|---|
InboxRoot | The chat's frame: it pins the chat to its corner, applies the merchant's colours and shares the chat state with the parts inside it. |
InboxLauncher | The round button that opens and closes the panel, with the unread count while the panel is closed. |
InboxPanel | The chat panel that opens above the launcher. |
InboxPanelHeader | The panel header with the title, whether someone is online and the close button. |
InboxConversation | The conversation area: the message list, or the open help article in its place. |
InboxMessageList | The messages of the conversation with day separators, the help search, suggestions and a jump to the latest message. |
InboxMessageBubble | One message with its author, text, files and, for the shopper's own messages, how far it has been delivered. |
InboxComposer | The message field with the attach and send buttons and the files waiting to be sent. |
InboxOfflineForm | The contact form that replaces the composer while no one is online: name, email and a message sent as an email. |
InboxStatusLine | The line above the composer that says the chat is reconnecting or that this is a preview. |
InboxKnowledgeSearch | The help article search with its results, drawn only when the store offers help articles in the chat. |
InboxKnowledgeSuggestions | A short list of help articles offered before the shopper writes, drawn only when there are some. |
InboxKnowledgeArticle | The help article the shopper opened, with a button back to the results; draws nothing while none is open. |
InboxChatGlyph | The speech bubble icon of the launcher. |
| Name | What it is |
|---|
InboxWidget | The complete live chat: the launcher and the panel with the conversation, the help search and the composer or the offline form. |
Last updated