{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero",
  "title": "Hero",
  "description": "The top of a landing page, centred: an announcement, the title, a line on what the product does, your actions, and the product below. Each part arrives once, in order; the shot leans back and settles flat as the page scrolls to it.",
  "dependencies": [],
  "registryDependencies": [
    "https://kinoui.com/r/avatar.json",
    "https://kinoui.com/r/badge.json",
    "https://kinoui.com/r/button.json",
    "https://kinoui.com/r/meter.json",
    "https://kinoui.com/r/sparkline.json",
    "https://kinoui.com/r/hero-parts.json",
    "https://kinoui.com/r/scroll.json"
  ],
  "files": [
    {
      "path": "registry/components/kino/hero/hero.tsx",
      "content": "'use client'\n\nimport {\n  HeroBackdrop,\n  heroEnter,\n  type HeroProps,\n  heroSectionClassName,\n  HeroWords,\n  pageColumnClassName,\n} from '@/registry/lib/hero-parts'\nimport { useScrollLinked } from '@/registry/lib/scroll'\nimport { useId, useRef } from 'react'\n\nimport { cn } from '@/lib/utils'\n\n/*\n * The top of a landing page, centred: an announcement, the title, a line\n * that says what the product does and the actions, with the product shot\n * below, fading into the page. The shot arrives leaning back a little and\n * settles flat as the page scrolls it into view.\n *\n *   <Hero\n *     title='Plan the cycle. Ship it on time.'\n *     description='Kino turns your issues into a plan you can trust.'\n *     actions={<a href='/signup' className={buttonVariants({ size: 'lg' })}>Start free</a>}\n *     shot={<HeroShot label='The cycle view'>…</HeroShot>}\n *   />\n */\n\nfunction Hero({\n  title,\n  description,\n  announcement,\n  actions,\n  shot,\n  heading = 'h1',\n  className,\n  ...props\n}: HeroProps) {\n  const titleId = useId()\n  const tilt = useRef<HTMLDivElement>(null)\n  useScrollLinked(tilt, {\n    from: {\n      transform:\n        'perspective(var(--hero-perspective,1200px)) rotateX(var(--hero-tilt,8deg)) scale(var(--hero-tilt-scale,0.97))',\n    },\n    to: {\n      transform: 'perspective(var(--hero-perspective,1200px)) rotateX(0deg) scale(1)',\n    },\n    // From the shot's top at the bottom of the view to a third of the way down it.\n    range: [1, 0.35],\n  })\n\n  return (\n    <section\n      data-slot='hero'\n      aria-labelledby={titleId}\n      className={cn(heroSectionClassName, className)}\n      {...props}\n    >\n      <HeroBackdrop />\n      <div\n        className={cn(\n          pageColumnClassName,\n          'flex flex-1 flex-col items-center gap-12 pt-16 @3xl/hero:gap-16 @3xl/hero:pt-24',\n          !shot && 'pb-16 @3xl/hero:pb-24',\n        )}\n      >\n        <HeroWords\n          titleId={titleId}\n          title={title}\n          description={description}\n          announcement={announcement}\n          actions={actions}\n          heading={heading}\n        />\n        {shot ? (\n          <div\n            className={cn(\n              'w-full max-w-6xl min-w-0',\n              // The shot's last fifth fades into the page below.\n              'mask-b-from-80% mask-b-to-100%',\n              heroEnter('shot'),\n            )}\n          >\n            <div\n              ref={tilt}\n              className={cn(\n                'origin-[50%_0%] will-change-transform',\n                // The lean the scroll starts from, there from the first paint,\n                // before the script that moves it has loaded.\n                'motion-safe:supports-[animation-timeline:scroll()]:[transform:perspective(var(--hero-perspective,1200px))_rotateX(var(--hero-tilt,8deg))_scale(var(--hero-tilt-scale,0.97))]',\n              )}\n            >\n              {shot}\n            </div>\n          </div>\n        ) : null}\n      </div>\n    </section>\n  )\n}\n\nexport { Hero }\n",
      "type": "registry:component",
      "target": "@components/kino/hero/hero.tsx"
    }
  ],
  "type": "registry:block"
}