{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "reveal",
  "type": "registry:component",
  "title": "Reveal",
  "description": "A simple wrapper that reveals content when it scrolls into view.",
  "dependencies": [
    "motion"
  ],
  "files": [
    {
      "path": "registry/new-york/blocks/reveal/reveal.tsx",
      "content": "\"use client\";\n\nimport { motion, Variants } from \"motion/react\";\nimport { ReactNode } from \"react\";\nimport { cn } from \"@/lib/utils\";\n\nconst VARIANTS: Variants = {\n  hidden: { opacity: 0, y: 40, filter: \"blur(10px)\" },\n  show: (i: number = 0) => ({\n    opacity: 1,\n    filter: \"blur(0px)\",\n    y: 0,\n    transition: { delay: i * 0.15, duration: 0.6, ease: \"easeOut\" },\n  }),\n};\n\nexport default function Reveal({\n  children,\n  className,\n  index = 0,\n}: {\n  children: ReactNode;\n  className?: string;\n  index?: number;\n}) {\n  return (\n    <motion.div\n      variants={VARIANTS}\n      initial=\"hidden\"\n      whileInView=\"show\"\n      viewport={{ once: true, amount: 0.2 }}\n      custom={index}\n      className={cn(className)}\n    >\n      {children}\n    </motion.div>\n  );\n}\n",
      "type": "registry:component"
    }
  ]
}