Home > @yext/chat-ui-react > MessageBubbleProps
The props for the MessageBubble() component.
Signature:
export interface MessageBubbleProps |
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
(Optional) CSS classes for customizing the component styling. | |||
|
(timestamp: string) => string |
(Optional) A function which is called to format the message's timestamp given in ISO format (e.g. "2023-05-18T19:33:34.553Z"). Defaults to "HH:MM A" (e.g. "7:33 PM"). | ||
|
string |
(Optional) Link target open behavior on click. | ||
|
Message |
The message to display. | ||
|
(href?: string) => void |
(Optional) A callback which is called when user clicks a link. | ||
|
boolean |
(Optional) Whether to render the message text as markdown. Defaults to true. | ||
|
boolean |
(Optional) Whether to show the feedback buttons on the message bubble. Defaults to true. | ||
|
boolean |
(Optional) Whether to show the timestamp of the message with the message bubble. Defaults to true. |