{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hover-preview-demo",
  "type": "registry:block",
  "title": "Hover Preview: Default",
  "description": "Cursor Image Preview example, Default: A studio's work index. Point at a project: its photo opens at the pointer and trails it. Move down the list and each photo wipes in from the top; move up and it comes from the bottom. Sweep fast to flip through them. Tab through the rows to see each photo without a mouse. A take on the hover list (list hover) and image reveal (hover reveal). Fits team, portfolio and blog sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "team",
    "portfolio",
    "blog",
    "hover-list",
    "image-reveal",
    "cursor",
    "list",
    "image",
    "motion"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/hover-preview#hover-preview-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/hover-preview.json"
  ],
  "files": [
    {
      "path": "components/hover-preview-demo.tsx",
      "type": "registry:component",
      "content": "import { HoverPreview, HoverPreviewItem } from \"@/components/ui/hover-preview\";\n\nconst projects = [\n  { name: \"Northwind\", category: \"Branding\", year: 2025, photo: \"1561070791-2526d30994b5\" },\n  { name: \"Lumen Studio\", category: \"Web\", year: 2024, photo: \"1618005182384-a83a8bd57fbe\" },\n  { name: \"Atlas Bank\", category: \"Product\", year: 2024, photo: \"1460925895917-afdab827c52f\" },\n  { name: \"Field Notes\", category: \"Editorial\", year: 2023, photo: \"1455390582262-044cdead277a\" },\n  { name: \"Halden House\", category: \"Architecture\", year: 2023, photo: \"1600585154340-be6161a56a0c\" },\n  { name: \"Sona Audio\", category: \"Campaign\", year: 2022, photo: \"1505740420928-5e560c06d30e\" },\n  { name: \"Maison Vert\", category: \"Interiors\", year: 2022, photo: \"1618221195710-dd6b41faaea6\" },\n];\n\nconst photo = (id: string, width: number, height: number) =>\n  `https://images.unsplash.com/photo-${id}?auto=format&fit=crop&w=${width}&h=${height}&q=80`;\n\nconst slug = (name: string) => name.toLowerCase().replace(/\\s+/g, \"-\");\n\nexport function HoverPreviewDemo() {\n  return (\n    <section className=\"w-full max-w-3xl\">\n      <div className=\"mb-4 flex items-end justify-between gap-4\">\n        <p className=\"font-mono text-xs tracking-widest text-zinc-500 uppercase\">Selected work</p>\n        <p className=\"font-mono text-xs text-zinc-500 tabular-nums\">2022–2025</p>\n      </div>\n\n      <HoverPreview className=\"border-t border-zinc-200 dark:border-zinc-800\">\n        {projects.map((project) => (\n          <HoverPreviewItem\n            key={project.name}\n            href={`#${slug(project.name)}`}\n            image={photo(project.photo, 640, 480)}\n            thumbnail={photo(project.photo, 120, 120)}\n            className=\"border-b border-zinc-200 py-4 sm:py-5 dark:border-zinc-800\"\n          >\n            <span className=\"flex-1 text-2xl font-medium tracking-tight text-zinc-900 sm:text-5xl dark:text-zinc-50\">\n              {project.name}\n            </span>\n            <span className=\"text-xs text-zinc-500 tabular-nums sm:text-sm\">\n              {project.category} · {project.year}\n            </span>\n          </HoverPreviewItem>\n        ))}\n      </HoverPreview>\n    </section>\n  );\n}\n"
    }
  ]
}