Renderers
Small, self-contained components for structured content an agent produces. They take plain data, so you can use them outside a chat as well.
Diff
A unified diff with additions and removals highlighted. Pass the diff text an edit tool returned.
Loading the live demo…
DiffView props
| Prop | Type | Notes |
|---|---|---|
diff | string | Required. A unified diff (--- a/…, +++ b/…, @@ hunks). |
Todos
An agent's running checklist, with a progress bar. Coding and deep-research
agents keep one with the built-in todo tools; the chat store exposes it as
todos.
Loading the live demo…
TodosDisplay props
| Prop | Type | Notes |
|---|---|---|
todos | TodoItem[] | Required. Each item has id, content and status ('open', 'in_progress', 'done'). |
title | string | Heading above the list. |
className | string |