{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "water-caustics-hero",
  "title": "Water Caustics Hero",
  "description": "A full-bleed hero lit by rippling pool-light caustics. Made for travel and wellness sites.",
  "dependencies": [
    "@paper-design/shaders-react"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "registry/shaders/water-caustics-hero/water-caustics-hero.tsx",
      "content": "import { Water } from \"@paper-design/shaders-react\"\n\nimport { cn } from \"@/lib/utils\"\nimport { buttonVariants } from \"@/components/ui/button\"\n\ntype WaterCausticsHeroProps = React.ComponentProps<\"section\"> & {\n  eyebrow?: string\n  title?: string\n  description?: string\n  primaryAction?: { label: string; href: string }\n  secondaryAction?: { label: string; href: string }\n  /**\n   * Optional photo to ripple under the water, like a pool or a beach from\n   * above. Remote images must be served with CORS headers.\n   */\n  image?: string\n  /** Color of the water. */\n  colorBack?: string\n  /** Color of the caustic light. */\n  colorHighlight?: string\n  speed?: number\n}\n\nfunction WaterCausticsHero({\n  eyebrow = \"Retreats on the Aegean\",\n  title = \"Slow down. Float a while.\",\n  description = \"Seven days of sea air, warm stone and nothing on the calendar. Small groups, quiet coves, no phones at dinner.\",\n  primaryAction = { label: \"Plan your stay\", href: \"#\" },\n  secondaryAction = { label: \"See the villas\", href: \"#\" },\n  image,\n  colorBack = \"#0e8fa8\",\n  colorHighlight = \"#ffffff\",\n  speed = 0.6,\n  className,\n  ...props\n}: WaterCausticsHeroProps) {\n  return (\n    <section\n      data-slot=\"water-caustics-hero\"\n      className={cn(\n        \"relative isolate flex min-h-[640px] w-full flex-col justify-center overflow-hidden px-6 py-24 text-white md:px-12 lg:px-16\",\n        className\n      )}\n      style={{ backgroundColor: colorBack }}\n      {...props}\n    >\n      <Water\n        aria-hidden\n        className=\"absolute inset-0 -z-10 size-full\"\n        image={image}\n        fit=\"cover\"\n        colorBack={colorBack}\n        colorHighlight={colorHighlight}\n        highlights={0.5}\n        layering={0.5}\n        edges={1}\n        waves={0.3}\n        caustic={0.3}\n        size={0.3}\n        scale={1}\n        speed={speed}\n      />\n      {/* Deepens the water behind the copy so it stays readable. */}\n      <div\n        aria-hidden\n        className=\"absolute inset-0 -z-10 bg-linear-to-r from-black/45 via-black/15 to-transparent\"\n      />\n      <div className=\"flex max-w-xl flex-col gap-6\">\n        <span className=\"font-mono text-[11px] tracking-widest text-white/80 uppercase\">\n          {eyebrow}\n        </span>\n        <h1 className=\"font-heading text-4xl leading-[1.05] tracking-tight text-balance sm:text-6xl\">\n          {title}\n        </h1>\n        <p className=\"max-w-md text-base text-pretty text-white/85 sm:text-lg\">\n          {description}\n        </p>\n        <div className=\"flex flex-wrap items-center gap-3\">\n          <a\n            href={primaryAction.href}\n            className={cn(\n              buttonVariants({ size: \"lg\" }),\n              \"bg-white text-black hover:bg-white/80\"\n            )}\n          >\n            {primaryAction.label}\n          </a>\n          <a\n            href={secondaryAction.href}\n            className={cn(\n              buttonVariants({ size: \"lg\", variant: \"outline\" }),\n              \"border-white/60 bg-transparent text-white hover:bg-white/10 hover:text-white\"\n            )}\n          >\n            {secondaryAction.label}\n          </a>\n        </div>\n      </div>\n    </section>\n  )\n}\n\nexport { WaterCausticsHero }\n",
      "type": "registry:component"
    }
  ],
  "categories": [
    "sections",
    "hero"
  ],
  "type": "registry:block"
}