Elements

组件

AI 回复 AI Response

AI Markdown 渲染:内容渲染通过 `@tanstack/markdown` 完成;默认配置让原始 HTML 和可执行链接保持不可执行,因此在结构上就是流式安全的。可选高亮器会重新着色围栏代码块,组件不关心由哪个引擎提供。

#基础用法

ai-response/basic Vue React

The paper-and-ink system

Interfaces are warm paper; content is ink. A hairline divides, light elevates, and nothing pops.

  1. Ground in ambient shade
  2. Ink carries hierarchy
  3. Pigment only where it means

#属性

#AiResponse

AI Markdown 渲染:内容渲染通过 @tanstack/markdown 完成;默认配置让原始 HTML 和可执行链接保持不可执行,因此在结构上就是流式安全的。可选高亮器会重新着色围栏代码块,组件不关心由哪个引擎提供。

属性类型默认值描述
contentString显示在内容区的 markdown 文本,可自由流式传入;原始 HTML 和可执行链接不会生效
highlighterFunction as PropType<(code: string, lang?: string) => string>undefined可选的代码高亮函数,用于重绘围栏代码块;组件不关心高亮引擎
copyLabelString"Copy code"复制前复制按钮的无障碍名称
copiedLabelString"Copied"复制完成后复制按钮的无障碍名称