Skip to main content

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​

PropTypeNotes
diffstringRequired. 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​

PropTypeNotes
todosTodoItem[]Required. Each item has id, content and status ('open', 'in_progress', 'done').
titlestringHeading above the list.
classNamestring