Skip to content
Cloudflare Docs

RtkTextMessage

@deprecated rtk-text-message is deprecated and will be removed soon. Use rtk-text-message-view instead. A component which renders a text message from chat.

Properties

PropertyTypeRequiredDefaultDescription
iconPackIconPackdefaultIconPackIcon pack
isContinuedboolean-Whether the message is continued by same user
messageTextMessage-Text message object
nowDate-Date object of now, to calculate distance between dates
showBubbleboolean-show message in bubble
tRtkI18nuseLanguage()Language

Usage Examples

Basic Usage

import { RtkTextMessage } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return <RtkTextMessage />;
}

With Properties

import { RtkTextMessage } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return (
<RtkTextMessage
isContinued={true}
message={textmessage}
now={date}
/>
);
}