Use card() for a single summary surface and card_grid() for a responsive multi-column grid of entity cards that collapses to one column on phones.
card()
card_grid()
<ComponentPreview title="Card & Card Grid">
[
{"type": "card", "title": "Monthly Revenue", "value": "$48,200", "footer": "+14.2% vs last month"},
{"type": "card_grid", "columns": 2, "items": [
{"title": "Docs Agent", "subtitle": "gpt-4o-mini", "tag": "Active", "description": "Answers product and API questions from indexed docs."},
{"title": "Code Reviewer", "subtitle": "claude-3.7", "tag": "Idle", "description": "Reviews pull requests against architecture rules."}
]}
]
</ComponentPreview>
<Tabs>
<Tab title="Python">
</Tab>
<Tab title="YAML">
</Tabs>
| Component | Parameter | Description |
|---|---|---|
| card | title, value, footer | Card heading, prominent metric value, and optional footer caption. |
card
title
value
footer
| card_grid | items, columns | List of card dicts (title, subtitle, tag, description, href, page) and desktop column count. |
card_grid
items
columns
subtitle
tag
description
href
page