{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "paint-reveal-restore-demo",
  "type": "registry:block",
  "title": "Paint Reveal: Photo Restore",
  "description": "Hover Image Reveal example, Photo Restore: An AI photo-restoration tool. With `fadeMs={Infinity}` the paint stays, so you restore the print stroke by stroke. \"Restored\" floods the rest in from the switch, and \"Faded\" floods it back and starts over. A take on the image reveal (hover reveal). Fits hero, portfolio and team sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "hero",
    "portfolio",
    "team",
    "image-reveal",
    "before-and-after",
    "image",
    "hover",
    "canvas"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/paint-reveal#paint-reveal-restore-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/paint-reveal.json"
  ],
  "files": [
    {
      "path": "components/paint-reveal-restore-demo.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { PaintReveal } from \"@/components/ui/paint-reveal\";\n\nconst lake = (grade = \"\") =>\n  `https://images.unsplash.com/photo-1501785888041-af3ef285b470?auto=format&fit=crop&w=1600&h=1067&q=80${grade}`;\n\nexport function PaintRevealRestoreDemo() {\n  const [restored, setRestored] = React.useState(false);\n\n  return (\n    <figure className=\"w-full max-w-3xl rounded-2xl border border-zinc-200 bg-white p-2 shadow-sm dark:border-zinc-800 dark:bg-zinc-900\">\n      <PaintReveal\n        src={lake(\"&sepia=60&con=-50&sat=-70&blur=6&exp=6\")}\n        alt=\"A faded, blurry print of a mountain lake with a rowing boat\"\n        revealSrc={lake()}\n        revealAlt=\"The same lake restored: turquoise water, sharp peaks, a clear sky\"\n        fadeMs={Infinity}\n        brushSize={110}\n        softness={0.35}\n        toggle\n        labels={[\"Faded\", \"Restored\"]}\n        revealed={restored}\n        onRevealedChange={setRestored}\n        toggleClassName=\"top-3 bottom-auto\"\n        className=\"aspect-[3/2] w-full rounded-xl\"\n      />\n      <figcaption className=\"flex flex-wrap items-center justify-between gap-x-6 gap-y-1 px-3 pt-3 pb-2 text-sm\">\n        <span className=\"font-medium text-zinc-900 dark:text-zinc-100\">Lago di Braies, 1974</span>\n        <span className=\"text-zinc-500\" aria-live=\"polite\">\n          {restored ? \"Restored in 2.4 s · 4× detail\" : \"Paint over the print to restore it\"}\n        </span>\n      </figcaption>\n    </figure>\n  );\n}\n"
    }
  ]
}