ChatRenderers

A collection of optional rendering functions that allow for custom UI rendering. Each property is a function that takes a context object and returns a template result.

Optional attachment

Section titled "attachment"

Custom renderer for a single chat message attachment.

attachment?: ChatTemplateRenderer<ChatAttachmentRenderContext>

Defined in src/components/chat/types.ts:180

Optional attachmentContent

Section titled "attachmentContent"

Custom renderer for the content of an attachment.

attachmentContent?: ChatTemplateRenderer<ChatAttachmentRenderContext>

Defined in src/components/chat/types.ts:184

Optional attachmentHeader

Section titled "attachmentHeader"

Custom renderer for the header of an attachment.

attachmentHeader?: ChatTemplateRenderer<ChatAttachmentRenderContext>

Defined in src/components/chat/types.ts:188

Optional fileUploadButton

Section titled "fileUploadButton"

Custom renderer for the file upload button in the input area.

fileUploadButton?: ChatTemplateRenderer<ChatRenderContext>

Defined in src/components/chat/types.ts:192

Custom renderer for the main chat input field.

input?: ChatTemplateRenderer<ChatInputRenderContext>

Defined in src/components/chat/types.ts:196

Optional inputActions

Section titled "inputActions"

Custom renderer for the actions container within the input area.

inputActions?: ChatTemplateRenderer<ChatRenderContext>

Defined in src/components/chat/types.ts:200

Optional inputActionsEnd

Section titled "inputActionsEnd"

Custom renderer for the actions at the end of the input area.

inputActionsEnd?: ChatTemplateRenderer<ChatRenderContext>

Defined in src/components/chat/types.ts:204

Optional inputActionsStart

Section titled "inputActionsStart"

Custom renderer for the actions at the start of the input area.

inputActionsStart?: ChatTemplateRenderer<ChatRenderContext>

Defined in src/components/chat/types.ts:208

Optional inputAttachments

Section titled "inputAttachments"

Custom renderer for the attachment previews within the input field.

inputAttachments?: ChatTemplateRenderer<ChatInputRenderContext>

Defined in src/components/chat/types.ts:212

Custom renderer for an entire chat message bubble.

message?: ChatTemplateRenderer<ChatMessageRenderContext>

Defined in src/components/chat/types.ts:216

Optional messageActions

Section titled "messageActions"

Custom renderer for message-specific actions (e.g., reply or delete buttons).

messageActions?: ChatTemplateRenderer<ChatMessageRenderContext>

Defined in src/components/chat/types.ts:220

Optional messageAttachments

Section titled "messageAttachments"

Custom renderer for the attachments associated with a message.

messageAttachments?: ChatTemplateRenderer<ChatMessageRenderContext>

Defined in src/components/chat/types.ts:224

Optional messageContent

Section titled "messageContent"

Custom renderer for the main text and content of a message.

messageContent?: ChatTemplateRenderer<ChatMessageRenderContext>

Defined in src/components/chat/types.ts:228

Optional messageHeader

Section titled "messageHeader"

Custom renderer for the header of a message, including sender and timestamp.

messageHeader?: ChatTemplateRenderer<ChatMessageRenderContext>

Defined in src/components/chat/types.ts:232

Optional sendButton

Section titled "sendButton"

Custom renderer for the message send button.

sendButton?: ChatTemplateRenderer<ChatRenderContext>

Defined in src/components/chat/types.ts:236

Optional suggestionPrefix

Section titled "suggestionPrefix"

Custom renderer for the prefix text shown before suggestions.

suggestionPrefix?: ChatTemplateRenderer<ChatRenderContext>

Defined in src/components/chat/types.ts:240