{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "xray-lens-blueprint-demo",
  "type": "registry:block",
  "title": "Xray Lens: Blueprint",
  "description": "Hover Reveal Magnifier example, Blueprint: A studio's booking card over its own blueprint: component names, type and spacing tokens on wireframe bounds. `mode=\"drag\"` with more `zoom`; pick the lens up and it lifts. The Design/Blueprint switch sits over the photo. A take on the magnifier (magnifying glass). Fits features and docs sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "features",
    "docs",
    "magnifier",
    "image-reveal",
    "before-and-after",
    "hover",
    "interaction",
    "developer"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/xray-lens#xray-lens-blueprint-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/xray-lens.json"
  ],
  "files": [
    {
      "path": "components/xray-lens-blueprint-demo.tsx",
      "type": "registry:component",
      "content": "import type { ReactNode } from \"react\";\n\nimport { XrayLens, XrayLensSpot } from \"@/components/ui/xray-lens\";\n\nconst photo =\n  \"https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=800&h=600&q=80\";\n\n// Blueprint lines: each part of the card drawn as a thin white box.\nconst line = \"outline-1 -outline-offset-1 outline-white/60\";\n\nfunction Part({ name, spec }: { name: string; spec?: string }) {\n  return (\n    <span className=\"flex h-full flex-col justify-center gap-0.5 px-1.5 font-mono text-[10px] leading-tight whitespace-nowrap\">\n      <span className=\"text-white\">{name}</span>\n      {spec && <span className=\"text-sky-200/70\">{spec}</span>}\n    </span>\n  );\n}\n\nfunction Tag({ children }: { children: ReactNode }) {\n  return (\n    <XrayLensSpot label=\"Tag\" xrayClassName={line} xray={<Part name=\"<Tag>\" />}>\n      <span className=\"inline-flex h-6 items-center rounded-md bg-zinc-100 px-2 text-xs text-zinc-600 dark:bg-zinc-800 dark:text-zinc-300\">\n        {children}\n      </span>\n    </XrayLensSpot>\n  );\n}\n\nfunction Listing() {\n  return (\n    <div className=\"p-3\">\n      <XrayLensSpot\n        label=\"Image · 4:3 · radius 12\"\n        xrayClassName={line}\n        xray={\n          <span className=\"relative block size-full\">\n            <svg aria-hidden className=\"absolute inset-0 size-full text-white/35\" preserveAspectRatio=\"none\" viewBox=\"0 0 100 100\">\n              <line x1=\"0\" y1=\"0\" x2=\"100\" y2=\"100\" stroke=\"currentColor\" vectorEffect=\"non-scaling-stroke\" />\n              <line x1=\"100\" y1=\"0\" x2=\"0\" y2=\"100\" stroke=\"currentColor\" vectorEffect=\"non-scaling-stroke\" />\n            </svg>\n            <span className=\"absolute inset-0 grid place-items-center\">\n              <span className=\"bg-[#0b3c8f] px-1.5 py-0.5\">\n                <Part name=\"<Image ratio=&quot;4/3&quot; />\" spec=\"cover · radius 12\" />\n              </span>\n            </span>\n          </span>\n        }\n      >\n        {/* eslint-disable-next-line @next/next/no-img-element -- a remote photo in an installable demo */}\n        <img\n          src={photo}\n          alt=\"A low timber and glass house lit up at dusk\"\n          draggable={false}\n          className=\"aspect-4/3 w-full rounded-xl bg-zinc-100 object-cover dark:bg-zinc-900\"\n        />\n      </XrayLensSpot>\n\n      <div className=\"flex flex-col gap-3 px-1.5 pt-4 pb-1.5\">\n        <div className=\"flex items-start justify-between gap-3\">\n          <XrayLensSpot\n            label=\"Heading · 17/24 · 600\"\n            xrayClassName={line}\n            xray={<Part name=\"<Heading size=&quot;md&quot;>\" spec=\"17/24 · 600 · -1%\" />}\n          >\n            <h4 className=\"text-[17px] leading-6 font-semibold tracking-tight text-zinc-900 dark:text-zinc-50\">\n              Timber House\n            </h4>\n            <p className=\"text-sm text-zinc-500\">Lake Bohinj, Slovenia</p>\n          </XrayLensSpot>\n          <XrayLensSpot\n            label=\"Rating\"\n            xrayClassName={line}\n            xray={<Part name=\"<Rating>\" spec=\"value 4.92\" />}\n            className=\"flex items-center gap-1 pt-0.5 text-sm font-medium text-zinc-900 tabular-nums dark:text-zinc-100\"\n          >\n            <svg aria-hidden viewBox=\"0 0 20 20\" className=\"size-3.5 fill-amber-400\">\n              <path d=\"M10 1.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8L10 14.9l-5.2 2.7 1-5.8L1.5 7.7l5.9-.9z\" />\n            </svg>\n            4.92\n          </XrayLensSpot>\n        </div>\n\n        <XrayLensSpot\n          label=\"Stack · row · gap 6\"\n          xrayClassName={line}\n          xray={null}\n          className=\"flex flex-wrap gap-1.5\"\n        >\n          <Tag>Sauna</Tag>\n          <Tag>Lake view</Tag>\n          <Tag>Sleeps 4</Tag>\n        </XrayLensSpot>\n\n        <div className=\"mt-1 flex items-center justify-between border-t border-zinc-100 pt-3 dark:border-zinc-800\">\n          <XrayLensSpot\n            label=\"Price · tabular\"\n            xrayClassName={line}\n            xray={<Part name=\"<Price unit=&quot;night&quot;>\" spec=\"EUR · tabular\" />}\n            className=\"text-sm text-zinc-500\"\n          >\n            <span className=\"text-base font-semibold text-zinc-900 tabular-nums dark:text-zinc-50\">€184</span>{\" \"}\n            night\n          </XrayLensSpot>\n          <XrayLensSpot\n            label=\"Button · md · h 36\"\n            xrayClassName={line}\n            xray={<Part name=\"<Button>\" spec=\"md · h 36 · px 14\" />}\n          >\n            <button\n              type=\"button\"\n              className=\"h-9 rounded-lg bg-zinc-900 px-3.5 text-sm font-medium text-white transition-colors hover:bg-zinc-800 dark:bg-white dark:text-zinc-900 dark:hover:bg-zinc-200\"\n            >\n              Reserve\n            </button>\n          </XrayLensSpot>\n        </div>\n      </div>\n    </div>\n  );\n}\n\nexport function XrayLensBlueprintDemo() {\n  return (\n    <section className=\"grid w-full max-w-3xl items-center gap-10 sm:grid-cols-[minmax(0,1fr)_20rem]\">\n      <div>\n        <p className=\"font-mono text-xs tracking-widest text-zinc-500 uppercase\">Design systems</p>\n        <h3 className=\"mt-3 text-3xl font-semibold tracking-tight text-balance text-zinc-900 dark:text-zinc-50\">\n          Built from parts, not pixels.\n        </h3>\n        <p className=\"mt-4 max-w-sm text-sm/6 text-pretty text-zinc-600 dark:text-zinc-400\">\n          Every screen we ship is made of named components and tokens your team can reuse. Pick up\n          the loupe and drag it across the card to see the system underneath.\n        </p>\n      </div>\n      <XrayLens\n        mode=\"drag\"\n        size=\"55%\"\n        zoom={1.14}\n        rest={{ x: 0.45, y: 0.68 }}\n        lensLabel=\"Blueprint lens\"\n        labels={[\"Design\", \"Blueprint\"]}\n        toggleClassName=\"top-5 right-5 bottom-auto\"\n        surface={<Listing />}\n        xray={\n          <div className=\"absolute inset-0 bg-[linear-gradient(rgb(255_255_255/0.07)_1px,transparent_1px),linear-gradient(90deg,rgb(255_255_255/0.07)_1px,transparent_1px)] bg-size-[8px_8px]\">\n            <div className=\"absolute inset-0 bg-[linear-gradient(rgb(255_255_255/0.08)_1px,transparent_1px),linear-gradient(90deg,rgb(255_255_255/0.08)_1px,transparent_1px)] bg-size-[40px_40px]\" />\n          </div>\n        }\n        xrayClassName=\"bg-[#0b3c8f] text-white\"\n        labelClassName=\"bg-[#0b3c8f]/95 ring-white/25\"\n        className=\"w-full rounded-2xl bg-white shadow-[0_1px_2px_rgb(0_0_0/0.05),0_16px_40px_-20px_rgb(0_0_0/0.3)] ring-1 ring-zinc-950/5 dark:bg-zinc-950 dark:ring-white/10\"\n      />\n    </section>\n  );\n}\n"
    }
  ]
}