Delta Pill
A change pill: a trend icon and the move from a prior figure, green or red by direction. Percent figures read in points, the rest as a relative %. Optional hover with both windows and the change. Exports its delta and number-format helpers.
214 +2.4% $184.0K +14.3% 7.4% -1.7 pts
-2.0% 0.0% +20.0%
Installation
pnpm dlx shadcn-svelte@latest add https://mitchellaha.github.io/m-cn-svelte-registry/r/delta-pill.json