Elements

Components

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.

#Basic usage

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

#Props

#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.