Skip to content

RtkMarkdownView

Last updated View as MarkdownAgent setup

Properties

Property Type Required Default Description
maxLength number - max length of text to render as markdown
text string - raw text to render as markdown

Usage Examples

Basic Usage

import { RtkMarkdownView } from '@cloudflare/realtimekit-react-ui';

function MyComponent() {
  return <RtkMarkdownView />;
}

With Properties

import { RtkMarkdownView } from '@cloudflare/realtimekit-react-ui';

function MyComponent() {
  return (
    <RtkMarkdownView
      maxLength={42}
      text="example"
    />
  );
}

Was this helpful?