showcase/shell-docs/src/content/reference/bot/components/Message.mdx
Message is the root container for one posted message. Every card you post with thread.post starts with a Message wrapping the blocks that make it up — headers, sections, fields, action rows.
import { Message } from "@copilotkit/bot-ui";
import { Message, Header, Section, Context } from "@copilotkit/bot-ui";
function IssueCard({ id, title }: { id: string; title: string }) {
return (
<Message accent="#5865F2">
<Header>{id}</Header>
<Section>{title}</Section>
<Context>Updated just now</Context>
</Message>
);
}
Renders as the message's blocks array — capped at 50 blocks per message (SLACK_LIMITS.blocksPerMessage); the renderer clamps overflow instead of failing. With accent, the blocks move into a colored attachment.