Skip to content

Diff tablePro

Row-level changes in a keyed table (settings, records, environment variables): added, removed and changed rows with before → after and per-kind counts.

oxyn add diff-table
+2 added~3 changed−1 removed
ChangeSettingBeforeAfter
changedmodelsonnet-4sonnet-5
changedtemperature0.70.2
changedretries25
removedregioneu-west—
addedtimeout_s—30
addedtools.shell—ask
The code is part of Oxyn Pro

The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.

Get Pro

Rendered from Rust at build time · goes live when visible

When to use

  • An agent changed settings, a record or environment variables. table_diff(before, after) aligns the keys by LCS and reports each row as added, removed, changed or same, keeping the new order and placing removed rows where they were.

When not to use

  • A launch countdown with digits that roll per unit, a compact one-line variant, hours absorbing days when days are hidden, and a live state with a pulsing dot at zero: use Countdown instead.
  • A total that moves clearly: use Animated counter instead.
  • A collapsible JSON tree with search, paging for long arrays, copy value or path, the current path under the tree and full keyboard moves: use JSON viewer instead.

Installation

Diff table is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.

Terminal
oxyn add diff-table

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

Columns

Before and After columns.

+2 added~3 changed−1 removed
ChangeSettingBeforeAfter
changedmodelsonnet-4sonnet-5
changedtemperature0.70.2
changedretries25
removedregioneu-west—
addedtimeout_s—30
addedtools.shell—ask
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Inline

One value column with the old value struck in front.

+2 added~3 changed−1 removed
ChangeSettingValue
changedmodelsonnet-4 sonnet-5
changedtemperature0.7 0.2
changedretries2 5
removedregioneu-west
addedtimeout_s30
addedtools.shellask
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

All rows

Unchanged rows shown, muted.

+2 added~3 changed−1 removed
ChangeSettingBeforeAfter
changedmodelsonnet-4sonnet-5
samemax_tokens40964096
changedtemperature0.70.2
changedretries25
removedregioneu-west—
addedtimeout_s—30
sametools.weboffoff
addedtools.shell—ask
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

DiffTable

PropTypeDefaultDescription
rowsrequiredVec<RowChange>—Rows from `table_diff`.
key_labelString"Key"Column header for the key.
changed_onlybooltrueHide unchanged rows.
columnsbooltrueShow the before column (otherwise before is struck inline).

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
TabFocus the table to scroll it sideways
SpaceToggle Changed only when focused

Accessibility

  • A real table with a row header per key; each row's change is spoken (added, removed, changed) in a hidden cell.
  • Removed values are struck through as well as tinted.
From the spec
  • Real table with a row header per key; a hidden cell speaks the change kind; removed values are struck and tinted.

Motion & interaction

Timing
  • No motion; rows are static.
  • Reduced motion: n/a.

Responsive behaviour

  • The table scrolls sideways inside its card below its natural width.
Edge cases (spec)
  • Scrolls sideways inside its card below its natural width.

Notes for AI

  • Import DiffTable from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: DiffTableEl in oxyn_gpui.
  • Props to set first: rows.
  • Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI