{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "stats-ticker",
  "type": "registry:component",
  "title": "Stats Ticker",
  "description": "A dark full-bleed band with one oversized featured figure on top and two rows of metrics scrolling in opposite directions underneath, each with a value and a colored change arrow.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "stats",
    "stats",
    "ticker",
    "marquee",
    "live",
    "metrics",
    "section"
  ],
  "docs": "https://hyperblur.dev/effects/stats-ticker",
  "files": [
    {
      "path": "registry/hyperblur/stats-ticker.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/stats-ticker.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface TickerMetric {\n  label: string;\n  value: string;\n  change?: string;\n  direction?: \"up\" | \"down\";\n  good?: boolean;\n}\n\nexport interface TickerFeatured {\n  value: string;\n  label: string;\n  change?: string;\n  caption?: string;\n}\n\nexport interface StatsTickerProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  eyebrow?: string;\n  featured?: TickerFeatured;\n  description?: string;\n  primaryCta?: { label: string; href: string } | null;\n  secondaryCta?: { label: string; href: string } | null;\n  metrics?: TickerMetric[];\n  speed?: number;\n  rows?: 1 | 2;\n  accent?: string;\n}\n\nconst css = `\n.hb-ka9 {\n  --hb-ka9-accent: #22c55e;\n  --hb-ka9-speed: 48s;\n  box-sizing: border-box;\n  position: relative;\n  width: 100%;\n  overflow: hidden;\n  container-type: inline-size;\n  background: #050505;\n  color: #ededed;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-ka9 *, .hb-ka9 *::before, .hb-ka9 *::after { box-sizing: border-box; }\n.hb-ka9::before {\n  content: \"\";\n  position: absolute;\n  left: 50%;\n  top: -260px;\n  width: 900px;\n  height: 520px;\n  margin-left: -450px;\n  background: radial-gradient(closest-side, color-mix(in srgb, var(--hb-ka9-accent) 14%, transparent), transparent);\n  pointer-events: none;\n}\n.hb-ka9-wrap {\n  position: relative;\n  display: grid;\n  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);\n  align-items: end;\n  gap: 32px 64px;\n  max-width: 1120px;\n  margin: 0 auto;\n  padding: 96px 24px 56px;\n}\n.hb-ka9-live {\n  display: inline-flex;\n  align-items: center;\n  gap: 10px;\n  margin: 0 0 20px;\n  color: #a1a1a1;\n  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);\n  font-size: 12px;\n  letter-spacing: .08em;\n  text-transform: uppercase;\n}\n.hb-ka9-pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--hb-ka9-accent); }\n.hb-ka9-pulse::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  border-radius: 50%;\n  background: var(--hb-ka9-accent);\n  animation: hb-ka9-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;\n}\n@keyframes hb-ka9-ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }\n.hb-ka9-big {\n  margin: 0;\n  font-size: clamp(64px, 12cqw, 148px);\n  font-weight: 600;\n  line-height: .9;\n  letter-spacing: -.06em;\n  font-variant-numeric: tabular-nums;\n  background: linear-gradient(180deg, #ffffff 30%, #6b6b6b);\n  -webkit-background-clip: text;\n  background-clip: text;\n  color: transparent;\n}\n.hb-ka9-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 20px; }\n.hb-ka9-label { color: #a1a1a1; font-size: 16px; }\n.hb-ka9-chg {\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  padding: 4px 10px;\n  border: 1px solid color-mix(in srgb, var(--hb-ka9-accent) 35%, transparent);\n  border-radius: 999px;\n  background: color-mix(in srgb, var(--hb-ka9-accent) 12%, transparent);\n  color: color-mix(in srgb, var(--hb-ka9-accent) 60%, #fff);\n  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);\n  font-size: 12.5px;\n}\n.hb-ka9-chg svg { width: 9px; height: 9px; }\n.hb-ka9-chg span { color: #8f8f8f; }\n.hb-ka9-side { padding-bottom: 8px; }\n.hb-ka9-desc { margin: 0; color: #8f8f8f; font-size: 15px; line-height: 1.65; }\n.hb-ka9-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }\n.hb-ka9-btn {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  height: 40px;\n  padding: 0 16px;\n  border: 1px solid rgba(255, 255, 255, .12);\n  border-radius: 999px;\n  color: #ededed;\n  font-size: 14px;\n  font-weight: 500;\n  text-decoration: none;\n  transition: background .2s ease, border-color .2s ease;\n}\n.hb-ka9-btn:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); }\n.hb-ka9-btn:focus-visible { outline: 2px solid var(--hb-ka9-accent); outline-offset: 3px; }\n.hb-ka9-btn[data-primary=\"true\"] { border-color: transparent; background: #ededed; color: #0a0a0a; }\n.hb-ka9-btn[data-primary=\"true\"]:hover { background: #fff; }\n.hb-ka9-band {\n  position: relative;\n  border-top: 1px solid rgba(255, 255, 255, .08);\n  border-bottom: 1px solid rgba(255, 255, 255, .08);\n  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0));\n}\n.hb-ka9-row {\n  overflow: hidden;\n  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);\n  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);\n}\n.hb-ka9-row + .hb-ka9-row { border-top: 1px solid rgba(255, 255, 255, .06); }\n.hb-ka9-track {\n  display: flex;\n  width: max-content;\n  animation: hb-ka9-scroll var(--hb-ka9-speed) linear infinite;\n}\n.hb-ka9-row[data-dir=\"reverse\"] .hb-ka9-track { animation-direction: reverse; animation-duration: calc(var(--hb-ka9-speed) * 1.35); }\n.hb-ka9-band:hover .hb-ka9-track { animation-play-state: paused; }\n@keyframes hb-ka9-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }\n.hb-ka9-list { display: flex; margin: 0; padding: 0; list-style: none; }\n.hb-ka9-item {\n  display: flex;\n  align-items: center;\n  gap: 14px;\n  padding: 22px 32px;\n  border-right: 1px solid rgba(255, 255, 255, .06);\n  white-space: nowrap;\n}\n.hb-ka9-row[data-dir=\"reverse\"] .hb-ka9-item { padding-top: 16px; padding-bottom: 16px; opacity: .72; }\n.hb-ka9-il { color: #7a7a7a; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }\n.hb-ka9-iv { color: #ededed; font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }\n.hb-ka9-id {\n  display: inline-flex;\n  align-items: center;\n  gap: 4px;\n  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);\n  font-size: 12px;\n}\n.hb-ka9-id svg { width: 8px; height: 8px; }\n.hb-ka9-id[data-good=\"true\"] { color: #4ade80; }\n.hb-ka9-id[data-good=\"false\"] { color: #f87171; }\n.hb-ka9-pad { height: 72px; }\n.hb-ka9-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }\n@container (max-width: 820px) {\n  .hb-ka9-wrap { grid-template-columns: minmax(0, 1fr); align-items: start; }\n}\n@container (max-width: 520px) {\n  .hb-ka9-wrap { padding: 64px 16px 40px; }\n  .hb-ka9-big { font-size: clamp(52px, 18cqw, 80px); }\n  .hb-ka9-item { padding: 16px 20px; gap: 10px; }\n  .hb-ka9-iv { font-size: 15px; }\n  .hb-ka9-pad { height: 48px; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-ka9-track, .hb-ka9-pulse::after { animation: none; }\n  .hb-ka9-row { overflow-x: auto; }\n  .hb-ka9-list[aria-hidden=\"true\"] { display: none; }\n  .hb-ka9-btn { transition: none; }\n}\n`;\n\nfunction Arrow({ up }: { up: boolean }) {\n  return (\n    <svg viewBox=\"0 0 10 10\" fill=\"currentColor\" aria-hidden=\"true\">\n      <path d={up ? \"M5 1l4 7H1z\" : \"M5 9L1 2h8z\"} />\n    </svg>\n  );\n}\n\nconst defaultMetrics: TickerMetric[] = [\n  { label: \"Payments today\", value: \"$94.2M\", change: \"4.1%\", direction: \"up\" },\n  { label: \"Active merchants\", value: \"61,480\", change: \"0.8%\", direction: \"up\" },\n  { label: \"Avg. settlement\", value: \"1.7 days\", change: \"12.0%\", direction: \"down\", good: true },\n  { label: \"Authorization rate\", value: \"97.6%\", change: \"0.3 pts\", direction: \"up\" },\n  { label: \"Chargeback rate\", value: \"0.07%\", change: \"0.02 pts\", direction: \"down\", good: true },\n  { label: \"Countries live\", value: \"46\", change: \"2\", direction: \"up\" },\n  { label: \"Payouts sent\", value: \"1.2M\", change: \"6.5%\", direction: \"up\" },\n  { label: \"Fraud blocked\", value: \"$3.9M\", change: \"9.2%\", direction: \"up\" },\n  { label: \"API p95 latency\", value: \"84 ms\", change: \"6 ms\", direction: \"down\", good: true },\n  { label: \"Disputes won\", value: \"71%\", change: \"1.4 pts\", direction: \"down\", good: false },\n  { label: \"Uptime, 90 days\", value: \"99.999%\" },\n  { label: \"FX pairs\", value: \"138\", change: \"4\", direction: \"up\" },\n];\n\nconst defaultFeatured: TickerFeatured = {\n  value: \"$2.84B\",\n  label: \"settled through Ledgerline in October 2026\",\n  change: \"31.4%\",\n  caption: \"vs September\",\n};\n\nfunction Item({ m }: { m: TickerMetric }) {\n  const up = m.direction !== \"down\";\n  const good = m.good ?? up;\n  return (\n    <li className=\"hb-ka9-item\">\n      <span className=\"hb-ka9-il\">{m.label}</span>\n      <span className=\"hb-ka9-iv\">{m.value}</span>\n      {m.change && m.direction && (\n        <span className=\"hb-ka9-id\" data-good={good}>\n          <Arrow up={up} />\n          {m.change}\n          <span className=\"hb-ka9-sr\">{up ? \" up\" : \" down\"}</span>\n        </span>\n      )}\n    </li>\n  );\n}\n\nfunction Row({ metrics, dir }: { metrics: TickerMetric[]; dir: \"forward\" | \"reverse\" }) {\n  return (\n    <div className=\"hb-ka9-row\" data-dir={dir} aria-hidden={dir === \"reverse\" ? true : undefined}>\n      <div className=\"hb-ka9-track\">\n        <ul className=\"hb-ka9-list\">\n          {metrics.map((m, i) => (\n            <Item key={`${m.label}-${i}`} m={m} />\n          ))}\n        </ul>\n        <ul className=\"hb-ka9-list\" aria-hidden=\"true\">\n          {metrics.map((m, i) => (\n            <Item key={`${m.label}-${i}`} m={m} />\n          ))}\n        </ul>\n      </div>\n    </div>\n  );\n}\n\nexport function StatsTicker({\n  eyebrow = \"Live, updated every minute\",\n  featured = defaultFeatured,\n  description = \"Ledgerline moves money for 61,000 businesses across 46 countries. These are the numbers our operations team watches all day.\",\n  primaryCta = { label: \"Open the status page\", href: \"#\" },\n  secondaryCta = { label: \"Read the Q3 report\", href: \"#\" },\n  metrics = defaultMetrics,\n  speed = 48,\n  rows = 2,\n  accent = \"#22c55e\",\n  className = \"\",\n  style,\n  ...rest\n}: StatsTickerProps) {\n  const uid = React.useId();\n  const half = Math.ceil(metrics.length / 2);\n  const second = [...metrics.slice(half), ...metrics.slice(0, half)];\n  const vars = { \"--hb-ka9-accent\": accent, \"--hb-ka9-speed\": `${Math.max(speed, 4)}s`, ...style } as React.CSSProperties;\n\n  return (\n    <section className={`hb-ka9 ${className}`} style={vars} aria-labelledby={`${uid}-t`} {...rest}>\n      <style href=\"hb-stats-ticker\" precedence=\"default\">{css}</style>\n      <div className=\"hb-ka9-wrap\">\n        <div>\n          {eyebrow && (\n            <p className=\"hb-ka9-live\">\n              <span className=\"hb-ka9-pulse\" aria-hidden=\"true\" />\n              {eyebrow}\n            </p>\n          )}\n          <h2 id={`${uid}-t`} className=\"hb-ka9-big\">{featured.value}</h2>\n          <div className=\"hb-ka9-meta\">\n            <span className=\"hb-ka9-label\">{featured.label}</span>\n            {featured.change && (\n              <span className=\"hb-ka9-chg\">\n                <Arrow up />\n                {featured.change}\n                {featured.caption && <span>{featured.caption}</span>}\n              </span>\n            )}\n          </div>\n        </div>\n        <div className=\"hb-ka9-side\">\n          {description && <p className=\"hb-ka9-desc\">{description}</p>}\n          {(primaryCta || secondaryCta) && (\n            <div className=\"hb-ka9-ctas\">\n              {primaryCta && (\n                <a className=\"hb-ka9-btn\" data-primary=\"true\" href={primaryCta.href}>\n                  {primaryCta.label}\n                </a>\n              )}\n              {secondaryCta && (\n                <a className=\"hb-ka9-btn\" href={secondaryCta.href}>\n                  {secondaryCta.label}\n                </a>\n              )}\n            </div>\n          )}\n        </div>\n      </div>\n      <div className=\"hb-ka9-band\" role=\"region\" aria-label=\"Live metrics\">\n        <Row metrics={metrics} dir=\"forward\" />\n        {rows === 2 && <Row metrics={second} dir=\"reverse\" />}\n      </div>\n      <div className=\"hb-ka9-pad\" aria-hidden=\"true\" />\n    </section>\n  );\n}\n"
    }
  ]
}