Skip to content

Caption

Gen UI 2.0 standard

Small secondary text: a hint under a control, or a label in a Row. `text` can have inline markdown.

One of the 69 components in CopilotKit's standardUI. The playground's catalog extends it, so every agent here can use Caption. Standard catalog docs

Props

Read from standardUI.manifestComponents in the installed @copilotkit/react-core. In A2UI 1.0 any value may also be a { "@path" } binding into the surface data model or a { "@call" } function call.

PropTypeRequiredDescription
textstring | numberYesCaption text
colorstringNoOne of default|prose|primary|emphasis|secondary|tertiary|success|info|warning|caution|danger|discovery or a CSS color
size"sm" | "md" | "lg"NoDefault "lg"
fontWeight"normal" | "medium" | "semibold" | "bold"NoDefault "normal"
textAlign"start" | "center" | "end"No-
truncatebooleanNo-
maxLinesnumberNo-