EntityCard
Gen UI 2.0 standardA card for one product, place, person or listing: image, title, subtitle, description, a price or meta line, badge, rating and up to three buttons. href opens a page; onClick is sent when bound. Use a Grid of them for several things.
One of the 69 components in CopilotKit's standardUI. The playground's catalog extends it, so every agent here can use EntityCard. 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 |
|---|---|---|---|
| title | string | Yes | The name |
| actions | { label, href?, variant? }[] | No | Up to three buttons. A button without href sends onAction with its label |
| onAction | Action (event or functionCall) | No | Sent when the user clicks a button without href. The args carry the label of the button. |
| onClick | Action (event or functionCall) | No | Sent when the user clicks the card and it has no href. |
| subtitle | string | No | A second line, for example the brand or category |
| description | string | No | Up to three lines |
| image | string | No | An image URL |
| imageAspectRatio | string | No | Default "4 / 3" |
| meta | string | No | A short fact line, for example "$29 / month" or "Open until 22:00" |
| badge | { label, color? } | No | - |
| rating | number | No | 0 to 5, shown as stars |
| ratingCount | number | No | The number of ratings |
| href | string | No | Opens this URL in a new tab when the user clicks the card |
| layout | "vertical" | "horizontal" | No | Default "vertical". "horizontal" puts the image on the left |
| width | number | string | No | - |