CopilotKitDocs
  • Docs
  • Reference
  • Cookbook
Get Intelligence free
CopilotKitDocs
DocsReferenceCookbook
DocsReferenceCookbook

@copilotkit/bot

ActionsButtonContextDividerFieldsHeaderImageInputMarkdownMessageSectionSelectTable

@copilotkit/bot-slack

ReferencebotComponents

Section

A block of markdown body text in a bot message.


Overview

Section is the workhorse text block: a paragraph of body text with markdown support (**bold**, `code`, links, …).

Import

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

Props

Prop

Type

Usage

<Message>
  <Section>Ship **v1.4.2** to production? See the `CHANGELOG` first.</Section>
</Message>

On Slack

Renders as a section block with mrkdwn text, truncated at 3000 characters (SLACK_LIMITS.sectionText). Markdown is translated to mrkdwn (e.g. **bold** → *bold*) by the adapter.

Related

  • Markdown — an explicit markdown block
  • Fields — two-column label/value layout
  • markdownToMrkdwn — the Markdown → mrkdwn translation
570dd39