| 属性 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
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"
/>
);
}