Elements

Reference

AI Response

Markdown set on the paper. Rendering goes through `@tanstack/markdown`, whose defaults leave raw HTML and executable links inert — streaming-safe by construction. An optional highlighter re-inks fenced code; the component stays agnostic about which engine provides it.

Actions · Attachment · Attachments · CodeBody · CodeCopy · Content · Conversation · Loader · Message · Prompt · PromptEnd · PromptFooter · PromptHeader · PromptLeading · PromptMain · PromptTrailing · ReasoningContent · Response · Root · Source · Sources · Textarea · ToolBody · ToolLabel · ToolStatus · Trigger

#AiResponse

Markdown set on the paper. Rendering goes through @tanstack/markdown, whose defaults leave raw HTML and executable links inert — streaming-safe by construction. An optional highlighter re-inks fenced code; the component stays agnostic about which engine provides it.

PropTypeDefaultDescription
contentStringThe markdown text to set on the paper — streamed in freely; raw HTML and executable links stay inert.
highlighterFunction as PropType<(code: string, lang?: string) => string>undefinedOptional code-highlighting function re-inking fenced blocks; the component stays agnostic about which engine provides it.
copyLabelString"Copy code"The copy stamp's accessible name before the copy lands.
copiedLabelString"Copied"The copy stamp's accessible name once the text has landed.