Skip to content

Chat Bubble Out ​

Displays the incoming chat message bubble.

Importing ​

To use the chat bubble out component, first you need to register the component inside the page. You can register the component manually by importing the register function:

ts
import { register } from "@tapsioss/web-components/chat-bubble/out";

register(); // Now the chat bubble out component is ready to use!
ts
import { registerChatBubbleOut } from "@tapsioss/web-components";

registerChatBubbleOut(); // Now the chat bubble out component is ready to use!

Also you can automatically register the component by importing it with the following approach:

ts
import "@tapsioss/web-components/chat-bubble/out/element";

TIP

If you want to use all the component in your app, you can call registerAll at the root of your project.

ts
import { registerAll } from "@tapsioss/web-components";

registerAll(); // All the components are now available

In the React package, you can easily add the component using the following code:

ts
import { ChatBubbleOut } from "@tapsioss/react-components";

Component Usage ​

html
<tapsi-chat-bubble-out></tapsi-chat-bubble-out>
tsx
<ChatBubbleOut />

Properties ​

NameAttribute NameDescriptionTypeDefault Value
avatarSrcavatar-srcThe source of the avatar image.string""
timestamptimestampThe timestamp of chat element.string""
fullyRoundedfully-roundedWhether or not the bubble should be fully rounded.booleanfalse

Slots ​

NameValueDescription
DEFAULT-The default slot for the content.

TIP

The value of slots are available for developer as JavaScript Variables:

ts
// Option 1
import { ChatBubbleOutSlots } from "@tapsioss/web-components";

// Option 2
import { Slots } from "@tapsioss/web-components/chat-bubble/out";
ts
// Option 1
import { ChatBubbleOutSlots } from "@tapsioss/react-components";

// Option 2
import { Slots } from "@tapsioss/react-components/ChatBubbleOut";

Created with 🧡