{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero",
  "title": "Hero",
  "description": "The opening section of a landing page with an eyebrow, a title, a description, actions and an optional media slot.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "@corsair-ui/utils",
    "@corsair-ui/badge",
    "@corsair-ui/button"
  ],
  "files": [
    {
      "path": "registry/default/components/blocks/hero.tsx",
      "content": "import { ArrowRightIcon } from \"lucide-react\";\nimport type { ComponentProps, ReactNode } from \"react\";\nimport { cn } from \"@/registry/default/lib/utils\";\nimport { Badge } from \"@/registry/default/ui/badge\";\nimport { Button } from \"@/registry/default/ui/button\";\n\ntype HeroAlign = \"center\" | \"start\";\n\ninterface HeroProps extends Omit<ComponentProps<\"section\">, \"title\"> {\n  /** Small line above the title. Defaults to a pill link to `#changelog`; pass `null` to hide it. */\n  eyebrow?: ReactNode;\n  /** The page title, rendered in the `<h1>`. */\n  title?: ReactNode;\n  /** A sentence or two under the title. */\n  description?: ReactNode;\n  /** Buttons or links under the description. Defaults to \"Get started\" and \"Learn more\"; pass `null` to hide them. */\n  actions?: ReactNode;\n  /** An image, screenshot or illustration. Beside the text with `align=\"start\"` (on large screens), under it when centred. */\n  media?: ReactNode;\n  /** Centred text, or text on the start side. */\n  align?: HeroAlign;\n}\n\nconst defaultEyebrow = (\n  <Badge asChild variant=\"outline\" className=\"rounded-full px-3 py-1\">\n    <a href=\"#changelog\">\n      New · Version 2 is here\n      <ArrowRightIcon aria-hidden=\"true\" />\n    </a>\n  </Badge>\n);\n\nconst defaultActions = (\n  <>\n    <Button asChild size=\"lg\">\n      <a href=\"#get-started\">Get started</a>\n    </Button>\n    <Button asChild size=\"lg\" variant=\"outline\">\n      <a href=\"#features\">Learn more</a>\n    </Button>\n  </>\n);\n\n/**\n * The opening section of a landing page: an optional eyebrow, the page\n * title (the only `<h1>` among the blocks), a description, actions and an\n * optional media slot. Every piece of content is a prop with a neutral\n * default, so `<Hero />` renders a complete example.\n *\n * With `media` and `align=\"start\"` the text and the media sit side by side\n * on large screens; centred, the media goes under the text in a rounded,\n * bordered frame. The alignment is exposed as `data-align` for restyling.\n *\n * Accessibility: keep one `<h1>` per page, so use a single Hero. Give\n * images in `media` an `alt` text, or `alt=\"\"` when they are decorative.\n *\n * @example\n * <Hero\n *   title=\"Plan, track and ship\"\n *   description=\"One place for your roadmap, issues and releases.\"\n *   media={<img src=\"/screenshot.png\" alt=\"The Acme dashboard\" />}\n *   align=\"start\"\n * />\n */\nfunction Hero({\n  eyebrow = defaultEyebrow,\n  title = \"Build, launch and grow your product in one place\",\n  description = \"Acme brings your planning, analytics and customer feedback together, so your team spends less time switching tools and more time shipping.\",\n  actions = defaultActions,\n  media,\n  align = \"center\",\n  className,\n  ...props\n}: HeroProps) {\n  const centered = align === \"center\";\n  const split = !centered && media != null;\n\n  return (\n    <section\n      data-slot=\"hero\"\n      data-align={align}\n      className={cn(\"py-16 sm:py-24\", className)}\n      {...props}\n    >\n      <div\n        data-slot=\"hero-container\"\n        className={cn(\n          \"mx-auto w-full max-w-6xl px-4 sm:px-6\",\n          split && \"grid gap-12 lg:grid-cols-2 lg:items-center\"\n        )}\n      >\n        <div\n          data-slot=\"hero-content\"\n          className={cn(\n            \"flex flex-col\",\n            centered ? \"mx-auto max-w-3xl items-center text-center\" : \"max-w-2xl items-start\"\n          )}\n        >\n          {eyebrow != null ? (\n            <div\n              data-slot=\"hero-eyebrow\"\n              className=\"text-muted-foreground mb-6 text-sm font-medium\"\n            >\n              {eyebrow}\n            </div>\n          ) : null}\n          <h1\n            data-slot=\"hero-title\"\n            className=\"text-4xl font-semibold tracking-tight text-balance sm:text-5xl lg:text-6xl\"\n          >\n            {title}\n          </h1>\n          {description != null ? (\n            <p\n              data-slot=\"hero-description\"\n              className=\"text-muted-foreground mt-6 text-lg text-pretty sm:text-xl\"\n            >\n              {description}\n            </p>\n          ) : null}\n          {actions != null ? (\n            <div\n              data-slot=\"hero-actions\"\n              className={cn(\"mt-10 flex flex-wrap gap-3\", centered && \"justify-center\")}\n            >\n              {actions}\n            </div>\n          ) : null}\n        </div>\n        {media != null ? (\n          <div\n            data-slot=\"hero-media\"\n            className={cn(\n              \"min-w-0\",\n              centered && \"bg-muted mt-16 overflow-hidden rounded-xl border\"\n            )}\n          >\n            {media}\n          </div>\n        ) : null}\n      </div>\n    </section>\n  );\n}\n\nexport { Hero, type HeroAlign, type HeroProps };\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:block"
}