GitHub

Source

ChatEntry

The ChatEntry component holds and displays one chat message.

Import

import { ChatEntry } from "@livekit/components-react";

Usage

<Chat>
<ChatEntry />
</Chat>

Properties

entryReceivedChatMessage

The chat massage object to display.

hideName?boolean

(Optional) Hide sender name. Useful when displaying multiple consecutive chat messages from the same person.

hideTimestamp?boolean

(Optional) Hide message timestamp.

messageFormatter?MessageFormatter

(Optional) An optional formatter for the message body.