Text
Gen UI 2.0 standardBody text in a Card or next to another component; a paragraph alone is markdown outside the fence. Color "default" or "secondary". `text` takes inline markdown (**bold**, *italic*, ~~strike~~, ++underline++, `code`, [link](url)). `children` ids render inline after it, e.g. a Badge.
One of the 69 components in CopilotKit's standardUI. The playground's catalog extends it, so every agent here can use Text. 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.
| Prop | Type | Required | Description |
|---|---|---|---|
| text | string | number | No | Text with inline markdown. A bound number shows as text |
| children | string[] | { componentId, path } | No | Ids of child components, or a template { componentId, path } over a data list. |
| color | string | No | One of default|prose|primary|emphasis|secondary|tertiary|success|info|warning|caution|danger|discovery or a CSS color |
| fontWeight | "normal" | "medium" | "semibold" | "bold" | No | - |
| textAlign | "start" | "center" | "end" | No | - |
| italic | boolean | No | - |
| truncate | boolean | No | - |
| maxLines | number | No | - |
| tabularNums | boolean | No | - |
| width | number | string | No | - |
| weight | number | No | flex-grow in a Row or Column |
| size | "3xs" | "2xs" | "xs" | "sm" | "md" | "lg" | No | Default "md" |
| fontSize | number | string | No | Pixels when a number. Wins over size |
| lineHeight | number | string | No | A unitless ratio, or CSS |
| minLines | number | No | Reserves the height of this many lines |
| strong | boolean | No | Default false |
| underline | boolean | No | - |
| lineThrough | boolean | No | - |
| inline | boolean | No | - |
| preserveWhitespace | boolean | No | - |
| highlight | "green" | "orange" | "pink" | boolean | No | - |