跳转到内容
搜索文档

RtkMarkdownView

最后更新 查看 MarkdownAgent 设置

属性

属性 类型 必填 默认值 描述
maxLength number - 要渲染为 Markdown 的文本的最大长度
text string - 要渲染为 Markdown 的原始文本

使用示例

基本用法

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

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

带有属性

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

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

这篇文档对您有帮助吗?