Change summary preview

Change summary

What moved since last time – one metric per row with a colored trend

  • Group
    Activity
  • Origin
    Copied · affectUI · source
  • License
    MIT
  • Added
    Oct 18
npx shadcn@latest add @deank/change-summary

The registry stays private. Install from the repo with a GitHub token — see the README.

Usage

import { ChangeSummary } from "@/registry/components/change-summary/change-summary";

<ChangeSummary changes={[/* … */]} />

Props

NameTypeDefaultDescription
changesMetricChange[]label, change text, tone (good, bad, neutral) and the arrow direction
titlestring"What's changed"Heading in the gray tray
periodstringSmall text on the right of the heading
iconReactNodeReplaces the icon in front of the heading
classNamestringExtra class on the tray

When to use

- A short recap at the top of a dashboard or a weekly report - Explaining in words what changed, next to the charts that show it

When not to use

Detailed time-series (use a chart).

Related

Number ticker · Humidity dial · Notification stack