Back to Copilotkit

Markdown

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

1.64.2570 B
Original Source

Markdown is an explicit body-text block for formatted content.

tsx
import { Markdown, Message } from "@copilotkit/channels/ui";

<Message>
  <Markdown>{"**Owner:** Payments\n\n`p95 = 1.8s`"}</Markdown>
</Message>;
PropTypeDescription
childrenBotChildrenMarkdown text and portable child content.

It currently maps to the same provider primitives as Section: Slack mrkdwn and a wrapping Teams TextBlock. Use it when the semantic intent of the source is formatted text.