{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "logo-cloud-marquee",
  "title": "Logo cloud marquee",
  "description": "Customers’ logos in one row that drifts past, fading at its edges, held while the pointer is over it or a logo has focus, and still under reduced motion.",
  "dependencies": [],
  "registryDependencies": [
    "https://kinoui.com/r/hold.json",
    "https://kinoui.com/r/logo-cloud-parts.json",
    "https://kinoui.com/r/marquee.json",
    "https://kinoui.com/r/theme.json"
  ],
  "files": [
    {
      "path": "registry/components/kino/logo-cloud-marquee/logo-cloud-marquee.tsx",
      "content": "'use client'\n\nimport { useHold } from '@/registry/lib/hold'\nimport {\n  type CustomerLogo,\n  logoCloudColumnClassName,\n  LogoCloudLink,\n  LogoCloudLogo,\n  type LogoCloudProps,\n  logoCloudSectionClassName,\n  LogoCloudTitle,\n} from '@/registry/lib/logo-cloud-parts'\nimport { MarqueeRow } from '@/registry/lib/marquee'\nimport { useId } from 'react'\n\nimport { cn } from '@/lib/utils'\n\n/*\n * The logos drift past in one row across the page's width, fading at its\n * edges, at the Testimonials marquee's pace and with its manners: it holds\n * while the pointer is over it, while a logo has focus and while it is out of\n * view, and under reduced motion it stands still and scrolls sideways. A logo\n * with a story is a link, and brightens on hover.\n *\n *   <LogoCloudMarquee\n *     title='Trusted by teams that plan their week in Kino'\n *     logos={[{ name: 'Tessel', src: '/logos/tessel.svg', width: 560, height: 159 }]}\n *   />\n */\n\nfunction LogoCloudMarquee({\n  title,\n  heading = 'h2',\n  logos,\n  className,\n  ...props\n}: LogoCloudProps) {\n  const titleId = useId()\n  const hold = useHold()\n  return (\n    <section\n      data-slot='logo-cloud-marquee'\n      aria-labelledby={titleId}\n      className={cn(logoCloudSectionClassName, className)}\n      {...props}\n    >\n      <div className={cn(logoCloudColumnClassName, 'flex flex-col gap-8 @3xl:gap-10')}>\n        <LogoCloudTitle id={titleId} title={title} heading={heading} />\n        {/* The row runs the column's width and fades at its edges. */}\n        <div className='min-w-0' {...hold.handlers}>\n          <MarqueeRow\n            label='Customers'\n            running={hold.running}\n            driftVariable='--logo-cloud-drift'\n            trackClassName='items-center gap-12 py-2 @3xl/logo-cloud:gap-16'\n          >\n            {logos.map((logo) => (\n              <MarqueeLogo key={logo.name} logo={logo} />\n            ))}\n          </MarqueeRow>\n        </div>\n      </div>\n    </section>\n  )\n}\n\nfunction MarqueeLogo({ logo }: { logo: CustomerLogo }) {\n  const { href } = logo\n  return href ? (\n    <LogoCloudLink\n      logo={{ ...logo, href }}\n      className='text-muted-foreground hover:text-foreground flex items-center rounded-(--control-radius-xs) p-2 transition-colors duration-(--motion-press-duration) ease-(--motion-press-fade-easing)'\n    >\n      <LogoCloudLogo logo={logo} />\n    </LogoCloudLink>\n  ) : (\n    <div className='text-muted-foreground flex items-center p-2'>\n      <LogoCloudLogo logo={logo} />\n    </div>\n  )\n}\n\nexport { LogoCloudMarquee }\n",
      "type": "registry:component",
      "target": "@components/kino/logo-cloud-marquee/logo-cloud-marquee.tsx"
    }
  ],
  "type": "registry:block"
}