{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-split-reveal",
  "type": "registry:block",
  "title": "Hero Split Reveal Block",
  "description": "A Hero Split Reveal Block component for displaying a hero section.",
  "files": [
    {
      "path": "src/registry/blocks/hero-split-reveal.tsx",
      "type": "registry:block",
      "content": "\"use client\";\n\nimport { useId, type ComponentProps } from \"react\";\nimport { motion, useReducedMotion } from \"motion/react\";\nimport { Button } from \"@/components/ui/button\";\nimport { cn } from \"@/lib/utils\";\n\ntype Action = { label: string; href: string };\n\nexport type HeroSplitRevealProps = {\n  eyebrow?: string;\n  title?: string;\n  description?: string;\n  primaryAction?: Action;\n  secondaryAction?: Action;\n  /** Short facts in a mono list, e.g. delivery details. */\n  facts?: string[];\n  image?: { src: string; alt: string; caption?: string; credit?: string };\n} & ComponentProps<\"section\">;\n\nconst DEFAULTS = {\n  eyebrow: \"Bramble · Autumn list, 2026\",\n  title: \"Plants from people who grew them.\",\n  description:\n    \"We buy from fourteen small nurseries within a day's drive of our shed, then pack every pot by hand. No warehouse, no plastic wrap.\",\n  primaryAction: { label: \"Browse the autumn list\", href: \"#\" },\n  secondaryAction: { label: \"Meet the growers\", href: \"#\" },\n  facts: [\"Delivered Tue–Fri\", \"Free over €45\", \"30-day thriving promise\"],\n  image: {\n    src: \"https://images.unsplash.com/photo-1485955900006-10f4d324d411?w=1200&q=80\",\n    alt: \"A zebra haworthia in a mint-green pot against a white wall\",\n    caption: \"Zebra haworthia, repotted this morning\",\n    credit: \"Photographed in the packing shed\",\n  },\n};\n\nconst EASE = [0.65, 0, 0.35, 1] as const;\n\nexport default function HeroSplitReveal({\n  eyebrow = DEFAULTS.eyebrow,\n  title = DEFAULTS.title,\n  description = DEFAULTS.description,\n  primaryAction = DEFAULTS.primaryAction,\n  secondaryAction = DEFAULTS.secondaryAction,\n  facts = DEFAULTS.facts,\n  image = DEFAULTS.image,\n  className,\n  ...props\n}: HeroSplitRevealProps) {\n  const headingId = useId();\n  const reduceMotion = useReducedMotion();\n\n  return (\n    <section\n      data-slot=\"hero-split-reveal\"\n      aria-labelledby={headingId}\n      className={cn(\"w-full bg-background text-foreground\", className)}\n      {...props}\n    >\n      <div className=\"mx-auto grid max-w-6xl items-end gap-12 px-6 py-20 md:grid-cols-12 md:gap-10 md:py-28\">\n        <div className=\"md:col-span-5 md:pb-4\">\n          <p className=\"font-mono text-xs uppercase tracking-wider text-muted-foreground\">\n            {eyebrow}\n          </p>\n          <h1\n            id={headingId}\n            className=\"mt-8 text-5xl font-semibold leading-[0.95] tracking-[-0.045em] text-balance md:text-6xl lg:text-7xl\"\n          >\n            {title}\n          </h1>\n          <p className=\"mt-8 max-w-sm text-base leading-relaxed text-muted-foreground\">\n            {description}\n          </p>\n          <div className=\"mt-10 flex flex-wrap items-center gap-x-6 gap-y-3\">\n            <Button asChild size=\"lg\" className=\"rounded-none\">\n              <a href={primaryAction.href}>{primaryAction.label}</a>\n            </Button>\n            <a\n              href={secondaryAction.href}\n              className=\"text-sm font-medium underline decoration-1 underline-offset-[6px] hover:text-muted-foreground\"\n            >\n              {secondaryAction.label}\n            </a>\n          </div>\n          {facts.length > 0 && (\n            <ul className=\"mt-12 divide-y border-y font-mono text-xs uppercase tracking-wider text-muted-foreground\">\n              {facts.map((fact) => (\n                <li key={fact} className=\"py-2.5\">\n                  {fact}\n                </li>\n              ))}\n            </ul>\n          )}\n        </div>\n\n        <figure className=\"md:col-span-7\">\n          {/* The photo uncovers from the bottom once, like a print sliding out of a sleeve. */}\n          <motion.div\n            className=\"relative aspect-[4/5] overflow-hidden bg-muted sm:aspect-[5/4] md:aspect-[4/5]\"\n            initial={reduceMotion ? false : { clipPath: \"inset(100% 0 0 0)\" }}\n            animate={{ clipPath: \"inset(0% 0 0 0)\" }}\n            transition={{ duration: 1.1, ease: EASE }}\n          >\n            <motion.img\n              src={image.src}\n              alt={image.alt}\n              width={1200}\n              height={1500}\n              className=\"absolute inset-0 size-full object-cover\"\n              initial={reduceMotion ? false : { scale: 1.12 }}\n              animate={{ scale: 1 }}\n              transition={{ duration: 1.6, ease: EASE }}\n            />\n          </motion.div>\n          {(image.caption || image.credit) && (\n            <figcaption className=\"mt-3 flex flex-wrap justify-between gap-x-6 gap-y-1 font-mono text-xs text-muted-foreground\">\n              {image.caption && <span>{image.caption}</span>}\n              {image.credit && <span>{image.credit}</span>}\n            </figcaption>\n          )}\n        </figure>\n      </div>\n    </section>\n  );\n}\n"
    }
  ],
  "dependencies": [
    "motion"
  ],
  "registryDependencies": [
    "button"
  ]
}
