# UI catalog

Ready-made cards and canvases for your agent: live previews in your theme, with the code in TypeScript and JavaScript.

{/* Generated by scripts/build-ui-catalog.mjs from src/ui-catalog/. Do not edit. */}

Each template is one file you copy into your agent repo and adapt. Every page shows the template live in your theme, on desktop and mobile, with its code in TypeScript and JavaScript. Set the preview theme from a preset, a pasted theme, or your agent's product key.

AI builders read the same catalog as [catalog.json](/ui-catalog/catalog.json), and every page has a Markdown twin at the same path with `.md` appended.

## Chat cards

Cards the agent shows in the conversation.

- [KPI tiles](/ui-catalog/kpi-tiles/): The user asks how something is doing and the answer is 2–6 headline numbers (totals, rates, counts), each with a change vs a period.
- [Chart](/ui-catalog/chart/): The answer is a shape, not one number: a trend over time (line), amounts per period or channel (bars, grouped or stacked), or how a whole splits up (donut). One to three series, plus a previous period to compare against.
- [Entity card](/ui-catalog/entity-card/): The user asks about one record (an account, a contact, an order, a project) and the answer is what it is, its status and 4–6 key fields, with a way to open it in your app.
- [Records list](/ui-catalog/records-list/): The answer is a short list of records of one type (open tickets, deals closing soon, recent orders): 3–8 rows, each with a title, one line of detail and a value or status. Rows open the record in your app.
- [Paginated table](/ui-catalog/data-table/): The answer is 6–50 rows the user wants to compare across 3–6 columns (amounts, dates, statuses): unpaid invoices, usage by team, orders this week. The user sorts and pages in the card; the agent doesn't wait.
- [Timeline](/ui-catalog/timeline/): The user asks what happened to one record (a deal, a ticket, an order): who did what and when, in order. Comments, emails, status moves and field changes, grouped by day.
- [Comparison](/ui-catalog/comparison/): The user weighs 2–4 concrete options on the same attributes: plans, vendor quotes, versions, offers. The answer is in how they differ, row by row. Read-only by default; set selectable when the next step is choosing one, and the card waits for that choice.
- [Form with approval](/ui-catalog/form-approval/): The agent is about to create or change a record and has drafted most values (from the conversation, the page or an API). The user checks, edits and approves; only then is anything written.
- [Picker](/ui-catalog/picker/): The next step depends on a choice between 2–12 concrete options the agent already has: a plan, a time slot, an owner, the channels to notify. Each option needs more than a word to choose well: a description, a price, a badge.
- [Confirm](/ui-catalog/confirm/): The agent is about to make a change the user should approve first: billing, permissions, bulk updates, deletes, anything sent to other people. The values are settled; the user only says yes or no.
- [Wizard](/ui-catalog/wizard/): A setup needs 5–12 answers that fall into 2–3 natural groups, and later answers make more sense once earlier ones are in: connect an integration, create a webhook, invite a team. The user reviews everything before anything is created.
- [Progress](/ui-catalog/progress/): The agent started a job that takes more than a few seconds and runs on its own: an import, an export, a sync, a bulk update. The user wants to see it move, stop it, and act on what failed.

## Canvas

Panels that open beside the chat on desktop and stay while the user works. On mobile each one has a card instead.

- [Onboarding guide](/ui-catalog/onboarding-canvas/): A new user needs to finish 3–7 setup steps in your app, in order. The guide stays open beside the chat while the user works and the agent explains the current step.
- [Report](/ui-catalog/report-canvas/): The user asks how something did over a period and the answer needs room: a few headline numbers, a trend, a breakdown and what stands out. The agent explains it beside the chat and answers follow-ups from the same state.
- [Article editor](/ui-catalog/content-canvas/): The user and the agent write one article together over several turns: a help article, a blog post, release notes, an announcement. The user writes and formats in the canvas, and asks the agent to draft, shorten or rewrite parts of it.
- [Form](/ui-catalog/form-canvas/): A long form (3–4 sections, 10–16 fields) the user fills in over a few turns, with the agent filling what it can find and answering questions about the rest. The user sends it from the canvas.
- [Table](/ui-catalog/table-canvas/): Rows the user reviews and fixes in bulk before your app saves them: imported contacts, invoice lines, a price list (10 to 40 rows, 3 to 7 columns). The agent fixes the cells the user asks about, and the user imports from the canvas.
- [Code editor](/ui-catalog/code-canvas/): A query, a formula, a script or a config the user and the agent write together: a SQL report, a filter formula, a webhook payload. The agent writes it into the editor, keeps it valid, and the user runs a preview before your app saves it.
- [Custom canvas](/ui-catalog/custom-canvas/): None of the typed canvases fits: a plan, a brief, a runbook or a review the user and the agent shape together from headings, text, key values, checklists and callouts. The SDK adds no rule for OTHER, so your action's own prompt must say what the agent may change and what it must leave alone.
