Trend
Arrow + delta + optional sparkline, composed.
npx shadcn add @lopifi/trendExamples
The same component, case by case. Each stage is the shipped code with the props it shows; switch to Code for the usage.
Falling cost
With inverted polarity the delta and the sparkline both read a decline as favorable, from one prop.
How it behaves
What it renders, what it refuses to render, and why. The same paragraphs as the family spec, so the two can’t disagree.
Delta + Sparkline composed, with aligned baselines. The default "how is this doing" unit inside a card. polarity is required, no default, and is passed to both halves.
More in Primitives
See also
Where this component is specified, defined and running.
Elsewhere in the system
The live section Trend renders in, the calculators behind its figures, and the ledger payloads that feed it.