Output & generative UI

Diff view

Use when the agent proposes edits to code or config and people need to accept or reject each change on its own.

Proposed code edits side by side with per-hunk accept and reject.

Part of Output & generative UI. The stage where the response is a thing, not a paragraph: a document, a set of edits, a record, a chart. These patterns give that output a container the user can review, accept in part, and come back to later.

Do

Don't

States

Usage

import { DiffViewPattern } from "./halaska-kit";

<DiffViewPattern />

Built from

Button, Stack, Typography

Related patterns

Diff table, Code block

Halaska UI · Components · Patterns · Screens · Install