Skip to content

RtkTextMessageView

Last updated View as MarkdownAgent setup

A component which renders a text message from chat.

Properties

Property Type Required Default Description
isMarkdown boolean - Renders text as markdown (default = true)
text string - 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"
    />
  );
}

Was this helpful?