Back to Copilotkit

Markdown

showcase/shell-docs/src/content/reference/bot/components/Markdown.mdx

1.60.1864 B
Original Source

Overview

Markdown is an explicit markdown text block. It behaves like Section but signals intent: this content is markdown (e.g. agent output you're passing through), not incidental body text.

Import

tsx
import { Markdown } from "@copilotkit/bot-ui";

Props

<PropertyReference name="children" type="BotChildren"> The markdown source. </PropertyReference>

Usage

tsx
<Message>
  <Markdown>{agentSummary}</Markdown>
</Message>

On Slack

Renders as a section block whose text is passed through the adapter's Markdown → mrkdwn translation, truncated at 3000 characters (SLACK_LIMITS.sectionText).