{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "testimonial-logos",
  "title": "Testimonial Logos",
  "description": "A compact trust bar, a star rating with a helped-N-teams label above an infinite, edge-masked logo marquee.",
  "dependencies": [
    "motion",
    "clsx",
    "tailwind-merge"
  ],
  "files": [
    {
      "path": "registry/new-york/testimonial-logos/testimonial-logos.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { motion } from \"motion/react\";\nimport { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nfunction cn(...inputs: ClassValue[]) {\n  return twMerge(clsx(inputs));\n}\n\nexport interface TestimonialLogo {\n  brandName: string;\n  logoImage?: string;\n}\n\nexport interface TestimonialLogosProps extends Omit<React.ComponentPropsWithoutRef<\"div\">, \"children\"> {\n  trustLabel?: string;\n  trustRating?: number;\n  logos?: TestimonialLogo[];\n  logoSpeed?: number;\n  theme?: \"dark\" | \"light\";\n}\n\nconst DEFAULT_LOGOS: TestimonialLogo[] = [\n  { brandName: \"Northline\" },\n  { brandName: \"Vertex\" },\n  { brandName: \"Orbit\" },\n  { brandName: \"Lumen\" },\n  { brandName: \"Pulse\" },\n  { brandName: \"Cascade\" },\n];\n\nfunction Stars({ count, color }: { count: number; color: string }) {\n  return (\n    <div className=\"flex items-center gap-1\" role=\"img\" aria-label={`${count} out of 5 stars`}>\n      {Array.from({ length: 5 }).map((_, i) => (\n        <svg key={i} width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill={i < count ? color : \"rgba(128,128,128,0.25)\"} aria-hidden=\"true\">\n          <path d=\"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z\" />\n        </svg>\n      ))}\n    </div>\n  );\n}\n\nexport function TestimonialLogos({\n  trustLabel = \"Helped over 180+ teams\",\n  trustRating = 5,\n  logos = DEFAULT_LOGOS,\n  logoSpeed = 28,\n  theme = \"dark\",\n  className,\n  style,\n  ...props\n}: TestimonialLogosProps) {\n  const rootRef = React.useRef<HTMLDivElement>(null);\n  const [isVisible, setIsVisible] = React.useState(false);\n  const isDark = theme === \"dark\";\n  const starColor = isDark ? \"#FBBF24\" : \"#F59E0B\";\n  const trustColor = isDark ? \"rgba(244,244,245,0.55)\" : \"rgba(24,24,27,0.45)\";\n  const track = [...logos, ...logos];\n\n  React.useEffect(() => {\n    const el = rootRef.current;\n    if (!el) return;\n    const observer = new IntersectionObserver(([entry]) => setIsVisible(entry.isIntersecting), { threshold: 0.1 });\n    observer.observe(el);\n    return () => observer.disconnect();\n  }, []);\n\n  return (\n    <div ref={rootRef} className={cn(\"w-full\", className)} style={style} {...props}>\n      <motion.div\n        initial={{ opacity: 0, y: 12 }}\n        animate={isVisible ? { opacity: 1, y: 0 } : { opacity: 0, y: 12 }}\n        transition={{ duration: 0.5 }}\n        className=\"flex w-full flex-col items-center gap-3\"\n      >\n      <div className=\"flex flex-col items-center gap-2\">\n        <Stars count={trustRating} color={starColor} />\n        <span className=\"text-[13px] font-medium opacity-75\" style={{ color: trustColor, fontFamily: \"Inter, system-ui, sans-serif\" }}>\n          {trustLabel}\n        </span>\n      </div>\n\n      <div\n        className=\"relative w-full max-w-[520px] overflow-hidden\"\n        style={{ maskImage: \"linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%)\", WebkitMaskImage: \"linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%)\" }}\n      >\n        <motion.div\n          className=\"flex w-max gap-9\"\n          animate={isVisible ? { x: [\"0%\", \"-50%\"] } : undefined}\n          transition={{ x: { duration: logoSpeed, ease: \"linear\", repeat: Infinity, repeatType: \"loop\" } }}\n        >\n          {track.map((logo, i) => (\n            <div key={i} className=\"flex h-6 min-w-[70px] shrink-0 items-center justify-center\">\n              {logo.logoImage ? (\n                // eslint-disable-next-line @next/next/no-img-element\n                <img\n                  src={logo.logoImage}\n                  alt={logo.brandName}\n                  loading=\"lazy\"\n                  className=\"h-[18px] w-auto max-w-[90px] object-contain opacity-70\"\n                  style={{ filter: isDark ? \"brightness(0) invert(1)\" : \"none\" }}\n                />\n              ) : (\n                <span className=\"text-[13px] font-semibold tracking-[0.04em] whitespace-nowrap uppercase opacity-55\" style={{ color: trustColor, fontFamily: \"Inter, system-ui, sans-serif\" }}>\n                  {logo.brandName}\n                </span>\n              )}\n            </div>\n          ))}\n        </motion.div>\n      </div>\n      </motion.div>\n    </div>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}