Skip to content
Cloudflare Docs

RtkTextMessageView

A component which renders a text message from chat.

Properties

PropertyTypeRequiredDefaultDescription
isMarkdownboolean-Renders text as markdown (default = true)
textstring-Text message

Usage Examples

Basic Usage

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

With Properties

import { RtkTextMessageView } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return (
<RtkTextMessageView
isMarkdown={true}
text="example"
/>
);
}