Home > @yext/chat-ui-react > MessageBubbleProps
The props for the MessageBubble() component.
Signature:
export interface MessageBubbleProps | Property | Modifiers | Type | Description |
|---|---|---|---|
| customCssClasses? | MessageBubbleCssClasses | (Optional) CSS classes for customizing the component styling. | |
| formatTimestamp? | (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"). | |
| linkTarget? | string | (Optional) Link target open behavior on click. | |
| message | Message | The message to display. | |
| onLinkClick? | (href?: string) => void | (Optional) A callback which is called when user clicks a link. | |
| showFeedbackButtons? | boolean | (Optional) Whether to show the feedback buttons on the message bubble. Defaults to true. | |
| showTimestamp? | boolean | (Optional) Whether to show the timestamp of the message with the message bubble. Defaults to true. |