Skip to content

RtkImageMessage

Last updated View as MarkdownAgent setup

@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

Property Type Required Default Description
iconPack IconPack defaultIconPack Icon pack
isContinued boolean - Whether the message is continued by same user
message ImageMessage - Text message object
now Date - Date object of now, to calculate distance between dates
showBubble boolean - show message in bubble
t RtkI18n useLanguage() 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}
    />
  );
}

Was this helpful?