Margin Note Stats

A stats section where the chart explains itself. Margin Note reads three months of fares, stops where the price moved and writes why in the margin (a new flight, a festival, the last two weeks), then the takeaway; three plain numbers sit underneath.

Stats Section

Built with Margin Note

Uses motion, clsx, tailwind-merge

Open in ChatGPTOpen in Claude

Installation

The CLI writes components/margin-note-stats.tsx, the components it's built with (components/ui/margin-note.tsx) and lib/utils.ts, and installs motion, clsx and tailwind-merge. It needs the @keyframeui registry in components.json; add it once per project.

npx shadcn@latest add @keyframeui/margin-note-stats

Then put it where the section goes. The copy, links and data sit in constants at the top of the file, so making it yours starts there.

app/page.tsx
import { MarginNoteStats } from "@/components/margin-note-stats";

export default function Page() {
  return <MarginNoteStats />;
}

Built with

Each of these is a component on its own, with its own examples and props. The block installs them for you.