{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "image-hero",
  "title": "Image Hero",
  "description": "A hero section with a full-bleed photograph behind a gradient: an eyebrow, a headline, supporting copy and calls to action.",
  "dependencies": [
    "cn"
  ],
  "registryDependencies": [
    "litingyes/blocove/image",
    "badge"
  ],
  "files": [
    {
      "path": "src/registry/blocove/blocks/image-hero.tsx",
      "content": "import type { ReactNode } from 'react'\nimport type { ImageTransform } from '@/components/blocove/image/image'\nimport { cn } from 'cn'\nimport { Image } from '@/components/blocove/image/image'\nimport { Badge } from '@/components/ui/badge'\n\nexport interface ImageHeroProps {\n  /** The image source. */\n  src: string\n  /** Alternative text for the image. */\n  alt: string\n  /** The headline drawn over the image. */\n  title: string\n  /** A small label above the headline, for example the series or the mission. */\n  eyebrow?: string\n  /** Supporting copy under the headline. */\n  description?: string\n  /** Calls to action rendered under the copy, usually buttons or links. */\n  actions?: ReactNode\n  /** Whether the image is the largest contentful element. Defaults to true. */\n  priority?: boolean\n  /** Aspect ratio of the section. */\n  aspectRatio?: number | string\n  /** Widths the image requests. */\n  widths?: readonly number[]\n  /** Turns a source and a width into the URL that serves it. */\n  transform?: ImageTransform\n  /** Layout sizes of the image. */\n  sizes?: string\n  /** Extra classes for the section. */\n  className?: string\n}\n\n/**\n * A hero with a photograph behind it: the image is the surface, a gradient keeps\n * the copy legible, and the eyebrow, headline, description and actions sit in\n * the lower left corner. The image is a priority image by default, because a\n * hero usually owns the largest contentful paint.\n */\nexport function ImageHero({\n  src,\n  alt,\n  title,\n  eyebrow,\n  description,\n  actions,\n  priority = true,\n  aspectRatio = '16 / 9',\n  widths,\n  transform,\n  sizes = '100vw',\n  className,\n}: ImageHeroProps) {\n  return (\n    <section\n      data-slot=\"image-hero\"\n      className={cn(\n        'relative isolate flex w-full overflow-hidden rounded-xl bg-muted text-white',\n        className,\n      )}\n      style={{ aspectRatio }}\n    >\n      <div className=\"absolute inset-0 -z-10\">\n        <Image\n          alt={alt}\n          priority={priority}\n          sizes={sizes}\n          src={src}\n          transform={transform}\n          widths={widths}\n          className=\"h-full w-full\"\n          containerClassName=\"h-full w-full\"\n        />\n      </div>\n      <div\n        aria-hidden=\"true\"\n        className=\"absolute inset-0 -z-10 bg-gradient-to-t from-black/80 via-black/35 to-black/10\"\n      />\n\n      <div className=\"mt-auto flex max-w-xl flex-col gap-3 p-6 sm:p-10\">\n        {eyebrow\n          ? (\n              <Badge variant=\"secondary\" className=\"w-fit\">\n                {eyebrow}\n              </Badge>\n            )\n          : null}\n        <h2 className=\"font-heading text-3xl font-semibold tracking-tight text-balance sm:text-4xl\">\n          {title}\n        </h2>\n        {description\n          ? (\n              <p className=\"max-w-lg text-sm text-white/80 sm:text-base\">\n                {description}\n              </p>\n            )\n          : null}\n        {actions\n          ? (\n              <div className=\"flex flex-wrap items-center gap-2 pt-1\">\n                {actions}\n              </div>\n            )\n          : null}\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:block",
      "target": "components/blocove/image-hero.tsx"
    }
  ],
  "categories": [
    "image",
    "block"
  ],
  "type": "registry:block"
}