{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "site-header",
  "title": "Site header",
  "description": "A marketing site’s header: the logo, the menus with their panels and the actions in one bar that stays at the top. A surface fades in under it once the page scrolls. On a phone the menus open in a sheet.",
  "dependencies": [],
  "registryDependencies": [
    "https://kinoui.com/r/badge.json",
    "https://kinoui.com/r/site-header-parts.json",
    "https://kinoui.com/r/skeleton.json",
    "https://kinoui.com/r/theme.json"
  ],
  "files": [
    {
      "path": "registry/components/kino/site-header/site-header.tsx",
      "content": "'use client'\n\nimport {\n  SiteHeaderNav,\n  siteHeaderActionsClassName,\n  siteHeaderColumnClassName,\n  siteHeaderMenuClassName,\n  siteHeaderNavClassName,\n  SiteHeaderPhoneMenu,\n  type SiteHeaderProps,\n  useHeaderFit,\n  useHeaderScroll,\n} from '@/registry/lib/site-header-parts'\nimport { useRef } from 'react'\n\nimport { cn } from '@/lib/utils'\n\n/*\n * A marketing site's header: the logo, the menus and the actions in one bar\n * across the top. Over the top of the page it stands on the page itself;\n * once the page scrolls, or a menu opens, a surface and a line under it fade\n * in, so it reads over whatever passes beneath. On a phone the menus open\n * in a sheet from the side.\n *\n *   <SiteHeader\n *     logo={<a href='/' aria-label='Kino, home'><Logo /></a>}\n *     items={[{ label: 'Product', links: [...] }, { label: 'Pricing', href: '/pricing' }]}\n *     actions={<a href='/signup' className={buttonVariants()}>Get started</a>}\n *   />\n */\nfunction SiteHeader({\n  logo,\n  items,\n  actions,\n  label = 'Main',\n  className,\n  ...props\n}: SiteHeaderProps) {\n  const header = useRef<HTMLElement>(null)\n  useHeaderScroll(header)\n  useHeaderFit(header)\n  return (\n    <header\n      ref={header}\n      data-slot='site-header'\n      className={cn(\n        '@container/site-header group/header sticky top-0 z-40 isolate w-full min-w-0',\n        className,\n      )}\n      {...props}\n    >\n      {/* The surface, behind the bar: the page shows through it, softened. */}\n      <div\n        aria-hidden\n        className='bg-background/80 pointer-events-none absolute inset-0 -z-10 border-b opacity-0 backdrop-blur-lg transition-opacity duration-(--motion-layout-duration) ease-(--motion-layout-fade-easing) group-data-scrolled/header:opacity-100 group-has-[[aria-haspopup][aria-expanded=true]]/header:opacity-100 forced-colors:bg-[Canvas] forced-colors:opacity-100'\n      />\n      <div className={cn(siteHeaderColumnClassName, 'flex h-16 items-center gap-6')}>\n        <div data-site-header-part='start' className='flex shrink-0 items-center'>\n          {logo}\n        </div>\n        <SiteHeaderNav items={items} label={label} className={siteHeaderNavClassName} />\n        <div className='ms-auto flex items-center gap-2'>\n          {actions ? (\n            <div data-site-header-part='actions' className={siteHeaderActionsClassName}>\n              {actions}\n            </div>\n          ) : null}\n          <div className={siteHeaderMenuClassName}>\n            <SiteHeaderPhoneMenu\n              logo={logo}\n              items={items}\n              actions={actions}\n              label={label}\n            />\n          </div>\n        </div>\n      </div>\n    </header>\n  )\n}\n\nexport { SiteHeader }\n",
      "type": "registry:component",
      "target": "@components/kino/site-header/site-header.tsx"
    }
  ],
  "type": "registry:block"
}