Skip to content

Latest commit

 

History

History
191 lines (83 loc) · 2.55 KB

File metadata and controls

191 lines (83 loc) · 2.55 KB

Home > @yext/chat-ui-react > MessageBubbleProps

MessageBubbleProps interface

The props for the MessageBubble() component.

Signature:

export interface MessageBubbleProps 

Properties

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.

renderMarkdown?

boolean

(Optional) Whether to render the message text as markdown. Defaults to true.

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.