Diff
GraphDiff
List with add, remove, and unchanged rows. Works for changelogs or bundle sizes.
Command
pnpm dlx shadcn@latest add <origin>/r/graph-diff.jsonBundle
Added and removed rows with a total in the footer.
- vendor84 kb
- app31 kb
- sourcemaps12 kb
shipped103 kb
Headcount
Running total with hire and leave rows.
- start12
- hired3
- left1
now14
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | — | Caption drawn on the top edge of the frame. |
| rows | DiffRow[] | — | label, value, and optional sign: add, remove, or keep. |
| footer | DiffRow | — | Total row under a rule. |
| corner | string | "+" | Character at each corner of the frame. |
| className | string | — | Passed to the outer frame. |