Label
Gen UI 2.0 standardThe label of a form field.
One of the 69 components in CopilotKit's standardUI. The playground's catalog extends it, so every agent here can use Label. 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 | Yes | Label text |
| htmlFor | string | No | - |
| color | string | No | One of default|prose|primary|emphasis|secondary|tertiary|success|info|warning|caution|danger|discovery or a CSS color |
| size | "3xs" | "2xs" | "xs" | "sm" | "md" | "lg" | No | Default "sm" |
| fontWeight | "normal" | "medium" | "semibold" | "bold" | No | Default "medium" |
| textAlign | "start" | "center" | "end" | No | - |
| truncate | boolean | No | - |
| width | number | string | No | - |