{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "odometer-stats-demo",
  "type": "registry:block",
  "title": "Odometer: Landing Stats",
  "description": "Animated Number Counter example, Landing Stats: A band of headline numbers that roll up from 0 the first time they scroll into view, one after another. A take on the number counter (count up). Fits stats, pricing, hero and app UI sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "stats",
    "pricing",
    "hero",
    "app-ui",
    "number-counter",
    "number",
    "data",
    "motion"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/odometer#odometer-stats-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/odometer.json"
  ],
  "files": [
    {
      "path": "components/odometer-stats-demo.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { Odometer } from \"@/components/ui/odometer\";\n\nconst stats: {\n  value: number;\n  format?: Intl.NumberFormatOptions;\n  suffix?: string;\n  label: string;\n}[] = [\n  {\n    value: 2_400_000,\n    format: { notation: \"compact\", maximumFractionDigits: 1 },\n    label: \"Deals tracked\",\n  },\n  { value: 180, suffix: \"+\", label: \"Countries\" },\n  {\n    value: 0.9999,\n    format: { style: \"percent\", minimumFractionDigits: 2 },\n    label: \"Uptime, last 12 months\",\n  },\n  {\n    value: 4.9,\n    format: { minimumFractionDigits: 1 },\n    suffix: \"/5\",\n    label: \"Average rating\",\n  },\n];\n\n// Each number waits on 0 until the band scrolls into view, then rolls up,\n// a beat after the one before it. Replay remounts the band to roll again.\nexport function OdometerStatsDemo() {\n  const [run, setRun] = React.useState(0);\n\n  return (\n    <section className=\"@container w-full max-w-4xl rounded-2xl border border-zinc-200 bg-white p-6 shadow-sm shadow-zinc-950/[0.03] sm:p-8 dark:border-zinc-800 dark:bg-zinc-900 dark:shadow-none\">\n      <div className=\"flex items-end justify-between gap-6\">\n        <div>\n          <p className=\"font-mono text-xs tracking-widest text-zinc-500 uppercase\">Northwind, by the numbers</p>\n          <h3 className=\"mt-2 text-xl font-semibold tracking-tight text-balance text-zinc-950 dark:text-zinc-50\">\n            Run by revenue teams in every time zone.\n          </h3>\n        </div>\n        <button\n          type=\"button\"\n          onClick={() => setRun((r) => r + 1)}\n          className=\"inline-flex h-8 shrink-0 items-center gap-1.5 rounded-lg border border-zinc-200 px-2.5 text-xs font-medium text-zinc-600 transition-[background-color,color,scale] duration-150 outline-none hover:bg-zinc-100 hover:text-zinc-950 focus-visible:ring-2 focus-visible:ring-zinc-400 active:scale-[0.96] dark:border-zinc-700 dark:text-zinc-400 dark:hover:bg-zinc-800 dark:hover:text-zinc-50\"\n        >\n          <svg\n            aria-hidden\n            viewBox=\"0 0 16 16\"\n            fill=\"none\"\n            stroke=\"currentColor\"\n            strokeWidth=\"1.5\"\n            strokeLinecap=\"round\"\n            strokeLinejoin=\"round\"\n            className=\"size-3.5 transition-[rotate] duration-500 ease-[cubic-bezier(0.22,1,0.36,1)]\"\n            style={{ rotate: `${run * 360}deg` }}\n          >\n            <path d=\"M13.5 8a5.5 5.5 0 1 1-1.6-3.9\" />\n            <path d=\"M13.5 2.5v3h-3\" />\n          </svg>\n          Replay\n        </button>\n      </div>\n\n      <dl\n        key={run}\n        className=\"mt-8 grid grid-cols-2 gap-y-8 border-t border-zinc-200 pt-8 @2xl:grid-cols-4 dark:border-zinc-800\"\n      >\n        {stats.map((stat, i) => (\n          <div\n            key={stat.label}\n            className=\"flex flex-col-reverse gap-2 border-zinc-200 @2xl:border-l @2xl:px-6 @2xl:first:border-l-0 @2xl:first:pl-0 dark:border-zinc-800\"\n          >\n            <dt className=\"text-sm text-zinc-500 dark:text-zinc-400\">{stat.label}</dt>\n            <dd className=\"text-[clamp(2.25rem,7cqw,3.25rem)] leading-none font-semibold tracking-[-0.045em] text-zinc-950 dark:text-zinc-50\">\n              <Odometer value={stat.value} format={stat.format} rollOnView delay={i * 0.12} />\n              {stat.suffix ? <span className=\"text-zinc-400 dark:text-zinc-500\">{stat.suffix}</span> : null}\n            </dd>\n          </div>\n        ))}\n      </dl>\n    </section>\n  );\n}\n"
    }
  ]
}