Diff Table

AI-proposed edits sweeping through tabular data.

Installation

pnpm dlx shadcn@latest add @ward/diff-table

Add the Ward registry to components.json once:

"registries": {
  "@ward": "https://ward.so/r/{name}.json"
}

Or install from the URL with no configuration: npx shadcn@latest add https://ward.so/r/diff-table.json

Usage

import DiffTable from "@/components/ward/DiffTable";
<DiffTable
  rows={[
    { key: "rocky", id: "Rocky Road", dept: "Classic", email: "aurora-works", removed: true },
    { key: "mint", id: "Mint Chip", dept: "Classic", email: "maple-orbit", removed: false },
  ]}
/>

Props

PropTypeDefaultDescription
variantstring"Default"Accepted for registry parity; the component has a single variant.
rowsDiffRow[]ROWSExisting table rows, where rows marked as removed are tinted red and can be toggled on or off before the change is applied.

Ward · Version 1.1.0 · Registry manifest