1.0.12-alpha.0 • Published 9 months ago

@inbox-components/conversation v1.0.12-alpha.0

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

Inbox Components - Conversation

The Conversation component is part of the Inbox Components (https://inboxcomponents.com) library, a set of UI components designed to help you implement your own messaging inbox into your own software stack.

This component is framework-agnostic and can be used in any frontend framework, including React, Vue, Angular, or plain JavaScript.

Installation

In your javascript application, you can use the following to install the Conversation component:

<body>
  <inbox-components-conversation></inbox-components-conversation>
</body>

<script type="module" src="https://unpkg.com/@inbox-components/conversation@1.0.0/index.js"></script>

This component is responsive. Add this "meta" tag inside the "head" section to ensure the component adapts well to different screen sizes, particularly mobile devices.

<head>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
</head>

Customization

Our components are flexible and can be customized to match your needs.

Properties

Example:

<inbox-components-conversation property="value">
NameTypeDescriptionDefault
token (required)stringAuthentication token. Obtain a token at: https://inboxcomponents.comNone
filter-phone-numberstringFilter your messages by (multiple) phone number(s). Comma-separated list without spaces (e.g., 31612345678,13125556789). Ensure numbers include the country code.None
hide-list-singlebooleanHide list when only 1 conversation is availablefalse

Event Listeners

Example:

document
    .querySelector("inbox-components-conversation")
    .addEventListener("onOpen", (event) => {
    let { detail } = event;
    console.log("Opened conversation: ", detail[0].id);
});
NameTypeDescription
onOpenstringReturn the UUID of the opened conversation
1.0.12-alpha.0

9 months ago

1.0.11-alpha.0

9 months ago

1.0.10-alpha.0

10 months ago

1.0.9-alpha.0

10 months ago

1.0.8-alpha.0

10 months ago

1.0.7-alpha.0

10 months ago

1.0.6-alpha.0

10 months ago

1.0.5-alpha.0

10 months ago

1.0.4-alpha.0

10 months ago

1.0.3-alpha.0

10 months ago

1.0.2-alpha.0

10 months ago

1.0.1-alpha.0

11 months ago

1.0.0-dev

11 months ago

1.0.0

11 months ago