Chat Bubble In
Displays the user entered chat message bubble.
Importing
To use the chat bubble in 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/in";
register(); // Now the chat bubble in component is ready to use!
ts
import { registerChatBubbleIn } from "@tapsioss/web-components";
registerChatBubbleIn(); // Now the chat bubble in 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/in/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 { ChatBubbleIn } from "@tapsioss/react-components";
Component Usage
html
<tapsi-chat-bubble-in></tapsi-chat-bubble-in>
tsx
<ChatBubbleIn />
Properties
Name | Attribute Name | Description | Type | Default Value |
---|---|---|---|---|
status | status | The status of the chat element. | States | "sent" |
timestamp | timestamp | The timestamp of chat element. | string | "" |
fullyRounded | fully-rounded | Whether or not the bubble should be fully rounded. | boolean | false |
Slots
Name | Value | Description |
---|---|---|
DEFAULT | - | The default slot for the content. |
TIP
The value of slots are available for developer as JavaScript Variables:
ts
// Option 1
import { ChatBubbleInSlots } from "@tapsioss/web-components";
// Option 2
import { Slots } from "@tapsioss/web-components/chat-bubble/in";
ts
// Option 1
import { ChatBubbleInSlots } from "@tapsioss/react-components";
// Option 2
import { Slots } from "@tapsioss/react-components/ChatBubbleIn";