Back to Copilotkit

Context

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

1.60.1749 B
Original Source

Overview

Context renders small, muted secondary text — footnotes, attribution, timestamps, metadata that shouldn't compete with the message body.

Import

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

Props

<PropertyReference name="children" type="BotChildren"> The muted text content. </PropertyReference>

Usage

tsx
<Message>
  <Section>Found 3 matching runbooks.</Section>
  <Context>Searched Notion · just now</Context>
</Message>

On Slack

Renders as a context block — at most 10 elements per context block (SLACK_LIMITS.contextElements).