073
What moved while you were away, one metric per row: a tiny trend line, the number now, and a change chip that knows when down is the good news.
akachanges·trends·sparkline
Run this in any project set up for the shadcn CLI. It copies the Since You Left source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/since-you-left.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { SinceYouLeft } from "@/components/since-you-left";
export default function Page() {
return <SinceYouLeft />;
}A free React component in the Numbers collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Since You Left source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| title | string | "What changed" |
| periodsrequired | SinceYouLeftPeriod[] | — |
| metricsrequired | SinceYouLeftMetric[] | — |
| defaultPeriod | string | — |
| flatBelow | number | 0.005 |
| className | string | — |