ListItem
Gen UI 2.0 standardAn item of a List, with a label, a value on the right, a description, an icon and children. With an "action", the user can pick it.
One of the 69 components in CopilotKit's standardUI. The playground's catalog extends it, so every agent here can use ListItem. 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 |
|---|---|---|---|
| label | string | No | - |
| value | string | number | No | Without an action: shown on the right of the label, for a key and value fact |
| action | Action (event or functionCall) | No | Runs when the user picks the item. |
| children | string[] | { componentId, path } | No | Ids of child components, or a template { componentId, path } over a data list. |
| description | string | No | - |
| icon | string | No | Lucide icon name |
| marker | string | No | Shows this text as the marker |
| markerSize | number | No | The width of the marker column in pixels |
| disabled | boolean | No | Greys the item out and ignores its action |