{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"testimonials-wall","type":"registry:block","title":"Testimonials","description":"Wall of quote cards with initials avatars: two marquee rows drifting in opposite directions, or a masonry layout whose cards blur up into view.","author":"GetUrUI <hello@geturui.dev>","dependencies":["motion","lucide-react"],"registryDependencies":["@geturui/marquee"],"files":[{"path":"registry/geturui/blocks/testimonials-wall.tsx","type":"registry:block","target":"components/blocks/testimonials-wall.tsx","content":"\"use client\";\n\nimport * as React from \"react\";\nimport { motion } from \"motion/react\";\nimport { Star } from \"lucide-react\";\nimport { cn } from \"@/lib/utils\";\nimport { Marquee } from \"@/components/ui/marquee\";\n\nconst REDUCE = \"(prefers-reduced-motion: reduce)\";\nconst subscribeReduce = (cb: () => void) => {\n  const m = window.matchMedia(REDUCE);\n  m.addEventListener(\"change\", cb);\n  return () => m.removeEventListener(\"change\", cb);\n};\n/** Reduced-motion preference that is false on the server and during hydration, so the first render matches. */\nfunction useReducedMotionSafe() {\n  return React.useSyncExternalStore(subscribeReduce, () => window.matchMedia(REDUCE).matches, () => false);\n}\n\nexport interface Testimonial {\n  quote: string;\n  name: string;\n  /** Social handle, shown under the name, e.g. \"@mira.codes\". */\n  handle: string;\n  /** Optional role or company shown after the handle. */\n  role?: string;\n  /** 1–5; renders a star row when set. */\n  rating?: number;\n}\n\nexport interface TestimonialsWallProps {\n  eyebrow?: string;\n  heading?: string;\n  subheading?: string;\n  testimonials?: Testimonial[];\n  /** Two opposing marquee rows, or a static masonry wall that staggers in. */\n  variant?: \"marquee\" | \"masonry\";\n  /** Seconds per marquee loop. */\n  duration?: number;\n  className?: string;\n}\n\nconst DEFAULT_TESTIMONIALS: Testimonial[] = [\n  { quote: \"We replaced three hand-rolled animation helpers with GetUrUI in an afternoon. The springs just feel right.\", name: \"Mira Okafor\", handle: \"@mira.codes\", role: \"Design engineer, Halcyon\", rating: 5 },\n  { quote: \"The pricing block converted better than our old page on day one. The rolling numbers make people play with the slider.\", name: \"Jonas Weber\", handle: \"@jonasbuilds\", role: \"Founder, Tidewave\", rating: 5 },\n  { quote: \"Keyboard support is not an afterthought here. Our accessibility audit came back with nothing to fix.\", name: \"Priya Raman\", handle: \"@priyaux\", role: \"Accessibility lead\", rating: 5 },\n  { quote: \"Copy-paste means I can actually read and change the code. No black-box package to fight.\", name: \"Leo Martins\", handle: \"@leom\", role: \"Staff engineer, Kestrel\", rating: 5 },\n  { quote: \"Our docs finally feel alive. The marquee and the reveal text did more than any rebrand.\", name: \"Hana Sato\", handle: \"@hana.dev\", role: \"DevRel, Quillfire\", rating: 4 },\n  { quote: \"Tokens map one to one to our design system, so dark mode shipped the same day as light.\", name: \"Ade Bello\", handle: \"@adebello\", role: \"Product designer\", rating: 5 },\n  { quote: \"The notification stack is the most-copied thing in our internal Storybook. Everyone wants the swipe.\", name: \"Clara Novak\", handle: \"@claranovak\", role: \"Frontend, Mosswood\", rating: 5 },\n  { quote: \"Reduced motion is respected everywhere. That alone saved us a sprint.\", name: \"Sam Whitfield\", handle: \"@samw\", role: \"Engineering manager\", rating: 5 },\n];\n\nconst AVATAR_TONES = [\"bg-volt-soft text-volt-ink\", \"bg-ember-soft text-ember-ink\", \"bg-surface-raised text-ink ring-1 ring-inset ring-border\"];\n\nfunction initials(name: string) {\n  return name\n    .split(/\\s+/)\n    .filter(Boolean)\n    .slice(0, 2)\n    .map((p) => p[0]?.toUpperCase())\n    .join(\"\");\n}\n\nfunction QuoteCard({ t, index, className }: { t: Testimonial; index: number; className?: string }) {\n  return (\n    <figure className={cn(\"flex flex-col gap-4 rounded-lg border border-border bg-surface p-5 transition-colors duration-200 hover:border-border-strong\", className)}>\n      {t.rating !== undefined && (\n        <div className=\"flex gap-0.5 text-volt-ink\" role=\"img\" aria-label={`Rated ${t.rating} out of 5`}>\n          {Array.from({ length: 5 }, (_, i) => (\n            <Star key={i} aria-hidden className={cn(\"size-3.5\", i < (t.rating ?? 0) ? \"fill-current\" : \"text-ink-subtle/50\")} />\n          ))}\n        </div>\n      )}\n      <blockquote className=\"text-[14.5px] leading-[23px] text-ink\">&ldquo;{t.quote}&rdquo;</blockquote>\n      <figcaption className=\"mt-auto flex items-center gap-3\">\n        <span aria-hidden className={cn(\"grid size-9 shrink-0 place-items-center rounded-full text-[12px] font-semibold\", AVATAR_TONES[index % AVATAR_TONES.length])}>\n          {initials(t.name)}\n        </span>\n        <span className=\"grid min-w-0\">\n          <span className=\"truncate text-sm font-semibold text-ink\">{t.name}</span>\n          <span className=\"truncate text-[12.5px] text-ink-subtle\">\n            {t.handle}\n            {t.role ? ` · ${t.role}` : \"\"}\n          </span>\n        </span>\n      </figcaption>\n    </figure>\n  );\n}\n\n/** Wall of quote cards: two marquee rows drifting in opposite directions, or a masonry grid whose cards stagger up into view. */\nexport function TestimonialsWall({\n  eyebrow = \"Loved by builders\",\n  heading = \"Teams ship calmer interfaces with GetUrUI\",\n  subheading = \"Thousands of developers use our components in dashboards, docs and storefronts.\",\n  testimonials = DEFAULT_TESTIMONIALS,\n  variant = \"marquee\",\n  duration = 48,\n  className,\n}: TestimonialsWallProps) {\n  const reduce = useReducedMotionSafe();\n  const half = Math.ceil(testimonials.length / 2);\n  const rows = [testimonials.slice(0, half), testimonials.slice(half)];\n\n  return (\n    <section className={cn(\"@container w-full overflow-hidden py-16 sm:py-24\", className)}>\n      <header className=\"mx-auto mb-12 grid max-w-2xl gap-3 px-4 text-center @xl:px-6\">\n        {eyebrow && <span className=\"text-[13px] font-semibold uppercase tracking-[1px] text-volt-ink\">{eyebrow}</span>}\n        <h2 className=\"text-balance font-display text-3xl font-semibold tracking-[-0.8px] text-ink @xl:text-[40px] @xl:leading-[1.1]\">{heading}</h2>\n        {subheading && <p className=\"text-balance text-base leading-7 text-ink-muted\">{subheading}</p>}\n      </header>\n\n      {variant === \"marquee\" ? (\n        <div className=\"grid gap-4\">\n          {rows.map((row, r) =>\n            row.length ? (\n              <Marquee key={r} reverse={r === 1} duration={duration + r * 6}>\n                {row.map((t, i) => (\n                  <QuoteCard key={t.handle + i} t={t} index={i + r * half} className=\"w-[300px] shrink-0 @xl:w-[340px]\" />\n                ))}\n              </Marquee>\n            ) : null,\n          )}\n        </div>\n      ) : (\n        <div className=\"mx-auto max-w-6xl columns-1 gap-4 px-4 @xl:columns-2 @xl:px-6 @4xl:columns-3\">\n          {testimonials.map((t, i) => (\n            <motion.div\n              key={t.handle + i}\n              className=\"mb-4 break-inside-avoid\"\n              initial={reduce ? { opacity: 0 } : { opacity: 0, y: 20, filter: \"blur(6px)\" }}\n              whileInView={{ opacity: 1, y: 0, filter: \"blur(0px)\" }}\n              viewport={{ once: true, margin: \"-40px\" }}\n              transition={{ type: \"spring\", stiffness: 260, damping: 30, delay: (i % 3) * 0.08 }}\n            >\n              <QuoteCard t={t} index={i} />\n            </motion.div>\n          ))}\n        </div>\n      )}\n    </section>\n  );\n}\n"},{"path":"LICENSE-geturui.md","type":"registry:file","target":"LICENSE-geturui.md","content":"MIT License\n\nCopyright (c) 2026 geturui.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"}],"categories":["blocks","testimonials","quotes","social proof","marquee","masonry","reviews"],"meta":{"tier":"free","license":"MIT","docs":"https://geturui.com/docs/testimonials-wall"}}