{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "proof-review-ticker",
  "type": "registry:component",
  "title": "Proof Review Ticker",
  "description": "An aggregate rating with a distribution chart beside a vertical ticker that steps one review at a time, the newest card lighting its stars one by one. A band of review-site scores slides along the bottom.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "social-proof",
    "reviews",
    "ratings",
    "ticker",
    "stars",
    "distribution",
    "section"
  ],
  "docs": "https://hyperblur.dev/effects/proof-review-ticker",
  "files": [
    {
      "path": "registry/hyperblur/proof-review-ticker.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/proof-review-ticker.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface TickerReview {\n  title: string;\n  quote: string;\n  name: string;\n  meta: string;\n  rating: number;\n  source: string;\n}\n\nexport interface TickerSource {\n  name: string;\n  score: string;\n  count: string;\n}\n\nexport interface ProofReviewTickerProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  eyebrow?: string;\n  title?: string;\n  score?: number;\n  total?: string;\n  distribution?: number[];\n  reviews?: TickerReview[];\n  sources?: TickerSource[];\n  interval?: number;\n  autoPlay?: boolean;\n  accent?: string;\n}\n\nconst css = `\n.hb-wb5 {\n  --hb-wb5-accent: #34d399;\n  --hb-wb5-card: 118px;\n  --hb-wb5-gap: 12px;\n  box-sizing: border-box;\n  position: relative;\n  width: 100%;\n  overflow: hidden;\n  container-type: inline-size;\n  background: linear-gradient(180deg, #0b0d0c, #0a0a0a);\n  color: #ededed;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-wb5 *, .hb-wb5 *::before, .hb-wb5 *::after { box-sizing: border-box; }\n.hb-wb5-wrap { max-width: 1120px; margin: 0 auto; padding: 84px 24px 40px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }\n.hb-wb5-eyebrow { margin: 0 0 14px; color: var(--hb-wb5-accent); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }\n.hb-wb5-title { margin: 0; font-size: clamp(26px, 3.4cqw, 38px); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }\n.hb-wb5-agg { display: flex; align-items: center; gap: 20px; margin-top: 28px; }\n.hb-wb5-big { font-size: clamp(56px, 8cqw, 84px); font-weight: 600; line-height: .9; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }\n.hb-wb5-agg small { display: block; margin-top: 8px; color: #8f8f8f; font-size: 13px; }\n.hb-wb5-stars { position: relative; display: inline-flex; gap: 3px; }\n.hb-wb5-stars svg { width: 18px; height: 18px; }\n.hb-wb5-stars[data-sm] svg { width: 13px; height: 13px; }\n.hb-wb5-stars-base { color: #2a2a2a; display: inline-flex; gap: inherit; }\n.hb-wb5-stars-top { position: absolute; inset: 0; display: inline-flex; gap: inherit; overflow: hidden; color: var(--hb-wb5-accent); white-space: nowrap; }\n.hb-wb5-dist { display: grid; gap: 7px; margin: 26px 0 0; padding: 0; list-style: none; max-width: 360px; }\n.hb-wb5-dist li { display: grid; grid-template-columns: 14px minmax(0, 1fr) 40px; align-items: center; gap: 10px; color: #8f8f8f; font-size: 12px; font-variant-numeric: tabular-nums; }\n.hb-wb5-dist li span:last-child { text-align: right; }\n.hb-wb5-bar { height: 6px; border-radius: 6px; background: #1c1c1c; overflow: hidden; }\n.hb-wb5-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--hb-wb5-accent) 55%, transparent), var(--hb-wb5-accent)); transform-origin: left; animation: hb-wb5-grow 1.2s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--hb-wb5-d) * 90ms + 200ms); }\n.hb-wb5-win {\n  position: relative;\n  height: calc(var(--hb-wb5-card) * 3 + var(--hb-wb5-gap) * 2);\n  -webkit-mask: linear-gradient(180deg, #000 70%, transparent);\n  mask: linear-gradient(180deg, #000 70%, transparent);\n}\n.hb-wb5-card {\n  position: absolute;\n  left: 0;\n  right: 0;\n  top: 0;\n  height: var(--hb-wb5-card);\n  padding: 16px 18px 14px 20px;\n  border: 1px solid rgba(255, 255, 255, .07);\n  border-radius: 16px;\n  background: linear-gradient(180deg, #141414, #0f0f0f);\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);\n  opacity: var(--hb-wb5-o, 1);\n  transform: translateY(calc(var(--hb-wb5-slot) * (var(--hb-wb5-card) + var(--hb-wb5-gap)))) scale(var(--hb-wb5-sc, 1));\n  transition: transform .9s cubic-bezier(.65, 0, .35, 1), opacity .7s ease, border-color .6s ease, background .6s ease;\n  animation: hb-wb5-enter .9s cubic-bezier(.2, .8, .2, 1) both;\n}\n.hb-wb5-card::before { content: \"\"; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: var(--hb-wb5-accent); opacity: 0; transition: opacity .6s ease; }\n.hb-wb5-card[data-slot=\"0\"] { border-color: color-mix(in srgb, var(--hb-wb5-accent) 30%, rgba(255, 255, 255, .08)); background: linear-gradient(180deg, #161a18, #101211); }\n.hb-wb5-card[data-slot=\"0\"]::before { opacity: 1; }\n.hb-wb5-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }\n.hb-wb5-src { display: inline-flex; align-items: center; gap: 7px; color: #a1a1a1; font-size: 12px; font-weight: 500; }\n.hb-wb5-src i { width: 16px; height: 16px; border-radius: 5px; background: var(--hb-wb5-g); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }\n.hb-wb5-card .hb-wb5-fill svg { animation: hb-wb5-pop .5s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--hb-wb5-k) * 80ms + 350ms); }\n.hb-wb5-card b { display: block; margin-top: 9px; font-size: 14px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.hb-wb5-card p { margin: 4px 0 0; color: #a1a1a1; font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }\n.hb-wb5-by { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: #6f6f6f; font-size: 11.5px; }\n.hb-wb5-by svg { color: var(--hb-wb5-accent); }\n.hb-wb5-strip {\n  position: relative;\n  margin-top: 28px;\n  padding: 18px 0 48px;\n  border-top: 1px solid rgba(255, 255, 255, .06);\n  overflow: hidden;\n  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);\n  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);\n}\n.hb-wb5-lane { display: flex; width: max-content; gap: 48px; animation: hb-wb5-slide 40s linear infinite; }\n.hb-wb5-strip:hover .hb-wb5-lane { animation-play-state: paused; }\n.hb-wb5-chip { display: inline-flex; align-items: center; gap: 10px; color: #8f8f8f; font-size: 13px; white-space: nowrap; }\n.hb-wb5-chip b { color: #ededed; font-weight: 600; font-variant-numeric: tabular-nums; }\n.hb-wb5-chip svg { width: 12px; height: 12px; color: var(--hb-wb5-accent); }\n.hb-wb5-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }\n@keyframes hb-wb5-grow { from { transform: scaleX(0); } }\n@keyframes hb-wb5-enter { from { opacity: 0; filter: blur(6px); } }\n@keyframes hb-wb5-pop { from { transform: scale(0) rotate(-40deg); opacity: 0; } }\n@keyframes hb-wb5-slide { to { transform: translateX(-50%); } }\n@container (max-width: 820px) {\n  .hb-wb5-wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 64px; }\n}\n@container (max-width: 460px) {\n  .hb-wb5 { --hb-wb5-card: 128px; }\n  .hb-wb5-wrap { padding: 56px 16px 32px; }\n  .hb-wb5-card p { -webkit-line-clamp: 2; }\n  .hb-wb5-card b { margin-top: 7px; }\n  .hb-wb5-by { display: none; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-wb5-card, .hb-wb5-card::before { transition: none; animation: none; }\n  .hb-wb5-bar i, .hb-wb5-card .hb-wb5-fill svg { animation: none; }\n  .hb-wb5-lane { animation: none; }\n}\n`;\n\nconst srcTones: Record<string, string> = {\n  Stackrank: \"linear-gradient(135deg, #34d399, #047857)\",\n  Peerlist: \"linear-gradient(135deg, #f97316, #9a3412)\",\n  \"App Shelf\": \"linear-gradient(135deg, #60a5fa, #1e40af)\",\n  Trustgrid: \"linear-gradient(135deg, #a78bfa, #5b21b6)\",\n};\n\nconst defaultReviews: TickerReview[] = [\n  { title: \"Replaced three tools in one afternoon\", quote: \"Docs, tasks and the team wiki now live together, and search finds everything.\", name: \"Olivia Grant\", meta: \"Product lead, 40 seats\", rating: 5, source: \"Stackrank\" },\n  { title: \"The offline mode is the real deal\", quote: \"I edit on flights and it merges perfectly the moment I land.\", name: \"Kenji Watanabe\", meta: \"Consultant, 3 seats\", rating: 5, source: \"App Shelf\" },\n  { title: \"Our onboarding doc finally gets read\", quote: \"Embedded checklists made new hire setup take a day instead of a week.\", name: \"Fatima Zahra\", meta: \"People ops, 120 seats\", rating: 5, source: \"Peerlist\" },\n  { title: \"Fast, even with 9,000 pages\", quote: \"We migrated eight years of notes and it still opens instantly.\", name: \"Henrik Nilsson\", meta: \"CTO, 85 seats\", rating: 4, source: \"Trustgrid\" },\n  { title: \"Permissions that make sense\", quote: \"Guests see exactly one folder and nothing else. Legal signed off in a day.\", name: \"Carmen Ruiz\", meta: \"IT admin, 300 seats\", rating: 5, source: \"Stackrank\" },\n  { title: \"Support answered in four minutes\", quote: \"A real person with a fix and a short screen recording. On a Sunday.\", name: \"David Osei\", meta: \"Founder, 12 seats\", rating: 5, source: \"Peerlist\" },\n  { title: \"Templates saved our sprint rituals\", quote: \"Retro, planning and standup notes now follow one shape across nine teams.\", name: \"Isabel Moreau\", meta: \"Agile coach, 210 seats\", rating: 5, source: \"App Shelf\" },\n  { title: \"Wish the mobile editor did tables\", quote: \"Everything else on the phone is excellent, and they say tables ship soon.\", name: \"Pavel Novak\", meta: \"Engineer, 25 seats\", rating: 4, source: \"Trustgrid\" },\n];\n\nconst defaultSources: TickerSource[] = [\n  { name: \"Stackrank\", score: \"4.9\", count: \"1,204 reviews\" },\n  { name: \"Peerlist\", score: \"4.8\", count: \"860 reviews\" },\n  { name: \"App Shelf\", score: \"4.8\", count: \"3,410 ratings\" },\n  { name: \"Trustgrid\", score: \"4.7\", count: \"512 reviews\" },\n  { name: \"Leader, Knowledge base\", score: \"Fall 2026\", count: \"Stackrank report\" },\n  { name: \"Easiest to use\", score: \"#1\", count: \"Peerlist mid-market\" },\n];\n\nfunction StarPath() {\n  return <path fill=\"currentColor\" d=\"M10 1.6l2.5 5.3 5.8.7-4.3 4 1.1 5.7L10 14.5l-5.1 2.8 1.1-5.7-4.3-4 5.8-.7z\" />;\n}\n\nfunction Stars({ value, small, pop }: { value: number; small?: boolean; pop?: boolean }) {\n  const pct = Math.max(0, Math.min(1, value / 5)) * 100;\n  return (\n    <span className=\"hb-wb5-stars\" data-sm={small ? \"\" : undefined} aria-label={`${value} out of 5 stars`} role=\"img\">\n      <span className=\"hb-wb5-stars-base\">\n        {[0, 1, 2, 3, 4].map((k) => <svg key={k} viewBox=\"0 0 20 20\" aria-hidden=\"true\"><StarPath /></svg>)}\n      </span>\n      <span className={`hb-wb5-stars-top${pop ? \" hb-wb5-fill\" : \"\"}`} style={{ width: `${pct.toFixed(1)}%` }}>\n        {[0, 1, 2, 3, 4].map((k) => (\n          <svg key={k} viewBox=\"0 0 20 20\" aria-hidden=\"true\" style={{ \"--hb-wb5-k\": k, flex: \"none\" } as React.CSSProperties}><StarPath /></svg>\n        ))}\n      </span>\n    </span>\n  );\n}\n\nexport function ProofReviewTicker({\n  eyebrow = \"Rated by 6,000+ teams\",\n  title = \"People who write for a living love Folio\",\n  score = 4.8,\n  total = \"Based on 5,986 reviews\",\n  distribution = [82, 13, 3, 1, 1],\n  reviews = defaultReviews,\n  sources = defaultSources,\n  interval = 3200,\n  autoPlay = true,\n  accent = \"#34d399\",\n  className = \"\",\n  style,\n  ...rest\n}: ProofReviewTickerProps) {\n  const uid = React.useId();\n  const n = reviews.length;\n  const [head, setHead] = React.useState(0);\n  const paused = React.useRef(false);\n\n  React.useEffect(() => {\n    if (!autoPlay || n < 2) return;\n    if (window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches) return;\n    const id = window.setInterval(() => {\n      if (!paused.current) setHead((h) => h + 1);\n    }, Math.max(interval, 1200));\n    return () => window.clearInterval(id);\n  }, [autoPlay, interval, n]);\n\n  const slots = n ? [-1, 0, 1, 2, 3] : [];\n  const vars = { \"--hb-wb5-accent\": accent, ...style } as React.CSSProperties;\n\n  return (\n    <section className={`hb-wb5 ${className}`} style={vars} aria-labelledby={`${uid}-t`} {...rest}>\n      <style href=\"hb-proof-review-ticker\" precedence=\"default\">{css}</style>\n      <div className=\"hb-wb5-wrap\">\n        <div>\n          <p className=\"hb-wb5-eyebrow\">{eyebrow}</p>\n          <h2 id={`${uid}-t`} className=\"hb-wb5-title\">{title}</h2>\n          <div className=\"hb-wb5-agg\">\n            <span className=\"hb-wb5-big\">{score.toFixed(1)}</span>\n            <div>\n              <Stars value={score} />\n              <small>{total}</small>\n            </div>\n          </div>\n          <ul className=\"hb-wb5-dist\" aria-label=\"Rating distribution\">\n            {distribution.slice(0, 5).map((v, i) => (\n              <li key={i}>\n                <span>{5 - i}</span>\n                <span className=\"hb-wb5-bar\"><i style={{ width: `${Math.max(0, Math.min(100, v))}%`, \"--hb-wb5-d\": i } as React.CSSProperties} /></span>\n                <span>{`${v}%`}</span>\n              </li>\n            ))}\n          </ul>\n        </div>\n        <div\n          className=\"hb-wb5-win\"\n          onPointerEnter={() => { paused.current = true; }}\n          onPointerLeave={() => { paused.current = false; }}\n          onFocus={() => { paused.current = true; }}\n          onBlur={() => { paused.current = false; }}\n        >\n          <ul className=\"hb-wb5-sr\">\n            {reviews.map((r, i) => (\n              <li key={i}>{`${r.rating} stars. ${r.title}. ${r.quote} ${r.name}, ${r.meta}, via ${r.source}.`}</li>\n            ))}\n          </ul>\n          {slots.map((slot) => {\n            const abs = head + slot;\n            if (abs < 0) return null;\n            const r = reviews[abs % n];\n            const o = slot < 0 ? 0 : slot === 0 ? 1 : slot === 1 ? 0.8 : slot === 2 ? 0.55 : 0.3;\n            const sc = slot < 0 ? 0.94 : 1;\n            return (\n              <article\n                key={abs}\n                className=\"hb-wb5-card\"\n                data-slot={slot}\n                aria-hidden=\"true\"\n                style={{ \"--hb-wb5-slot\": slot, \"--hb-wb5-o\": o, \"--hb-wb5-sc\": sc } as React.CSSProperties}\n              >\n                <div className=\"hb-wb5-row\">\n                  <span className=\"hb-wb5-src\">\n                    <i style={{ \"--hb-wb5-g\": srcTones[r.source] ?? \"linear-gradient(135deg, #8f8f8f, #3a3a3a)\" } as React.CSSProperties} />\n                    {r.source}\n                  </span>\n                  <Stars value={r.rating} small pop />\n                </div>\n                <b>{r.title}</b>\n                <p>{r.quote}</p>\n                <div className=\"hb-wb5-by\">\n                  <svg width=\"12\" height=\"12\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path d=\"M8 1l1.8 1.3 2.2-.1.7 2.1 1.8 1.3-.7 2.1.7 2.1-1.8 1.3-.7 2.1-2.2-.1L8 15l-1.8-1.3-2.2.1-.7-2.1L1.5 10.4l.7-2.1-.7-2.1 1.8-1.3.7-2.1 2.2.1z\" fill=\"currentColor\" opacity=\".25\" /><path d=\"M5.5 8.2l1.7 1.6 3.4-3.6\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.6\" strokeLinecap=\"round\" strokeLinejoin=\"round\" /></svg>\n                  {`${r.name}, ${r.meta}`}\n                </div>\n              </article>\n            );\n          })}\n        </div>\n      </div>\n      <div className=\"hb-wb5-strip\" role=\"group\" aria-label=\"Ratings on review sites\">\n        <div className=\"hb-wb5-lane\">\n          {[0, 1].map((dup) =>\n            sources.map((s, i) => (\n              <span key={`${dup}-${i}`} className=\"hb-wb5-chip\" aria-hidden={dup === 1 ? true : undefined}>\n                <svg viewBox=\"0 0 20 20\" aria-hidden=\"true\"><StarPath /></svg>\n                <b>{s.score}</b>\n                {`${s.name}, ${s.count}`}\n              </span>\n            )),\n          )}\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}