Markdown Preview
Отображение Markdown. Pro · ИИ: чат и агенты › Чат
Установка
npx valyro-cli@latest login
npx valyro-cli@latest add markdown-preview
npm install valyro-ui-pro
import 'valyro-ui-pro/styles.css';
import { MarkdownPreview } from 'valyro-ui-pro';
Пропсы
| Prop | Type | Default | |
|---|---|---|---|
content * | string | Markdown source. Rendered through a parser to React elements — raw HTML is shown as text. | |
remoteImages | boolean | false | Load images from other origins. Off by default: in AI output an image URL can leak conversation data the moment it loads, so remote images render as links instead. |
streaming | boolean | false | Text is still arriving: a caret follows the last block, code blocks included. |
renderCitation | (index: number) => ReactNode | Turns [1]-style markers in the text into nodes, e.g. Citation chips. Markers inside links and code stay text, and so does a marker the function returns null for. | |
labels | Partial<MarkdownPreviewLabels> | Overrides for the built-in English text; keys left out keep their defaults. |
Похожие компоненты
- AI Chat Window — Окно AI-чата
- Chat Message — Сообщения с потоковым выводом
- Message Branches — Версии сообщения и дерево веток диалога
- Streaming Text — Плавный вывод потока токенов
- Response Feedback — Оценка ответа и рубрика для асессоров
- Prompt Composer — Поле промпта с вложениями
- Inline Suggestion — Подсказка-автодополнение в поле ввода
- Model Selector — Выбор модели ИИ
- Model Comparison — Сравнение ответов нескольких моделей
- Prompt Library — Библиотека промптов с переменными
- Chain of Thought — Ход рассуждений модели
- Tool Call — Вызов инструмента с подтверждением
Назад: Streaming Text · Далее: Response Feedback · Весь раздел «ИИ: чат и агенты»