{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "logo-cloud",
  "title": "Logo cloud",
  "description": "Customers’ logos in a hairline grid under a line that says who trusts the product, each sized to the same area, with a link to its story where there is one. Nothing moves.",
  "dependencies": [],
  "registryDependencies": [
    "https://kinoui.com/r/logo-cloud-parts.json",
    "https://kinoui.com/r/theme.json"
  ],
  "files": [
    {
      "path": "registry/components/kino/logo-cloud/logo-cloud.tsx",
      "content": "'use client'\n\nimport {\n  type CustomerLogo,\n  logoCloudColumnClassName,\n  LogoCloudLink,\n  LogoCloudLogo,\n  LogoCloudStoryArrow,\n  type LogoCloudProps,\n  logoCloudSectionClassName,\n  LogoCloudTitle,\n} from '@/registry/lib/logo-cloud-parts'\nimport { useId } from 'react'\n\nimport { cn } from '@/lib/utils'\n\n/*\n * Every logo at once, each in a cell of a hairline grid, and nothing moves.\n * A logo with a story is a link: the whole cell leads there, an arrow in its\n * corner says so, and on hover the cell tints and the logo darkens.\n *\n *   <LogoCloud\n *     title='Trusted by teams that plan their week in Kino'\n *     logos={[{ name: 'Tessel', src: '/logos/tessel.svg', width: 560, height: 159, href: '/customers/tessel' }]}\n *   />\n */\n\nfunction LogoCloud({\n  title,\n  heading = 'h2',\n  logos,\n  className,\n  ...props\n}: LogoCloudProps) {\n  const titleId = useId()\n  return (\n    <section\n      data-slot='logo-cloud'\n      aria-labelledby={titleId}\n      className={cn(logoCloudSectionClassName, className)}\n      {...props}\n    >\n      <div className={cn(logoCloudColumnClassName, 'flex flex-col gap-8')}>\n        <LogoCloudTitle id={titleId} title={title} heading={heading} />\n        {/* Each cell draws its lines at its end and bottom, so a short last row still closes the cells above it; the frame clips those on its own edges. */}\n        <div className='overflow-clip rounded-(--surface-radius) border'>\n          <ul className='-me-px -mb-px grid grid-cols-2 @lg/logo-cloud:grid-cols-3 @3xl/logo-cloud:grid-cols-4'>\n            {logos.map((logo) => (\n              <li key={logo.name} className='flex border-e border-b'>\n                <Cell logo={logo} />\n              </li>\n            ))}\n          </ul>\n        </div>\n      </div>\n    </section>\n  )\n}\n\nconst cellClassName =\n  'text-muted-foreground flex h-20 min-w-0 flex-1 items-center justify-center px-4 @lg/logo-cloud:h-24 @lg/logo-cloud:px-6 @3xl/logo-cloud:h-28'\n\nfunction Cell({ logo }: { logo: CustomerLogo }) {\n  const { href } = logo\n  if (!href) {\n    return (\n      <div className={cellClassName}>\n        <LogoCloudLogo logo={logo} />\n      </div>\n    )\n  }\n  return (\n    <LogoCloudLink\n      logo={{ ...logo, href }}\n      className={cn(\n        cellClassName,\n        'hover:bg-muted/60 hover:text-foreground focus-visible:ring-inset transition-[color,background-color] duration-(--motion-press-duration) ease-(--motion-press-fade-easing) forced-colors:hover:outline-2 forced-colors:hover:-outline-offset-2',\n      )}\n    >\n      <LogoCloudLogo logo={logo} />\n      <LogoCloudStoryArrow />\n    </LogoCloudLink>\n  )\n}\n\nexport { LogoCloud }\n",
      "type": "registry:component",
      "target": "@components/kino/logo-cloud/logo-cloud.tsx"
    }
  ],
  "type": "registry:block"
}