Skip to content
Cloudflare Docs

RtkImageMessage

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

Properties

PropertyTypeRequiredDefaultDescription
iconPackIconPackdefaultIconPackIcon pack
isContinuedboolean-Whether the message is continued by same user
messageImageMessage-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 { RtkImageMessage } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return <RtkImageMessage />;
}

With Properties

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