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

@copilotkit/bot

ActionsButtonContextDividerFieldsHeaderImageInputMarkdownMessageSectionSelectTable

@copilotkit/bot-slack

ReferencebotComponents

Fields

Two-column grid of label/value cells in a bot message, built from Field children.


Overview

Fields lays out a compact two-column grid of label/value cells — status, assignee, priority, dates. Each cell is a Field child.

Import

import { Fields, Field } from "@copilotkit/bot-ui";

Props

Fields

Prop

Type

Field

Prop

Type

Usage

<Message>
  <Header>CPK-1234</Header>
  <Fields>
    <Field>**Status**: In Progress</Field>
    <Field>**Priority**: High</Field>
    <Field>**Assignee**: Ada</Field>
    <Field>**Updated**: today</Field>
  </Fields>
</Message>

On Slack

Renders as a section block's fields array — at most 10 fields per section (SLACK_LIMITS.fieldsPerSection), each truncated at 2000 characters (SLACK_LIMITS.fieldText). Slack displays them two per row.

Related

  • Section — single-column body text
  • Table — full tabular data
10d3939