{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "redline-demo",
  "type": "registry:block",
  "title": "Redline: Details",
  "description": "Spacing Inspector Overlay example, Details: A studio's \"we sweat the details\" section around a product card. Left alone, it tours the card's padding, the gap between the title and the price, the button's 44px height and the space around the photo. Point at anything to take over, click to pin, and hold Alt to measure between two parts. With `spec`, text shows its font. A take on the annotation (arrow). Fits features and docs sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "features",
    "docs",
    "annotation",
    "tooltip",
    "inspector",
    "hover",
    "design"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/redline#redline-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/redline.json"
  ],
  "files": [
    {
      "path": "components/redline-demo.tsx",
      "type": "registry:component",
      "content": "import { Redline } from \"@/components/ui/redline\";\n\nconst photo =\n  \"https://images.unsplash.com/photo-1507473885765-e6ed057f782c?auto=format&fit=crop&w=480&h=360&q=80\";\n\nexport function RedlineDemo() {\n  return (\n    <section className=\"w-full max-w-4xl text-zinc-900 dark:text-zinc-50\">\n      <div className=\"grid gap-x-10 gap-y-3 sm:grid-cols-2 sm:items-end\">\n        <div>\n          <p className=\"font-mono text-xs tracking-widest text-zinc-500 uppercase\">Craft</p>\n          <h3 className=\"mt-2 text-3xl font-semibold tracking-tight text-balance\">\n            We sweat the details you&apos;ll never notice\n          </h3>\n        </div>\n        <p className=\"text-sm/6 text-pretty text-zinc-600 dark:text-zinc-400\">\n          Every space on this card was decided, not defaulted. Point at anything to see its\n          numbers, click to pin it, then hold <span className=\"font-medium\">⌥</span> and point at\n          another to measure between them.\n        </p>\n      </div>\n\n      <Redline\n        tour={[\"card\", \"details\", \"button\", \"photo\"]}\n        spec\n        className=\"mt-8 flex justify-center rounded-2xl border border-zinc-200 bg-zinc-50 bg-[radial-gradient(circle,rgb(0_0_0/0.07)_1px,transparent_1px)] bg-size-[16px_16px] px-6 py-14 dark:border-zinc-800 dark:bg-zinc-900/60 dark:bg-[radial-gradient(circle,rgb(255_255_255/0.06)_1px,transparent_1px)]\"\n      >\n        <article\n          data-redline=\"card\"\n          className=\"flex w-64 flex-col gap-4 rounded-2xl bg-white p-3 shadow-[0_1px_2px_rgb(0_0_0/0.05),0_12px_32px_-16px_rgb(0_0_0/0.25)] ring-1 ring-zinc-950/5 dark:bg-zinc-950 dark:ring-white/10\"\n        >\n          {/* eslint-disable-next-line @next/next/no-img-element -- a remote photo in an installable demo */}\n          <img\n            data-redline=\"photo\"\n            src={photo}\n            alt=\"A gray floor lamp against a white wall\"\n            draggable={false}\n            className=\"aspect-4/3 w-full rounded-lg bg-zinc-100 object-cover dark:bg-zinc-900\"\n          />\n          <div data-redline=\"details\" className=\"flex flex-col gap-1\">\n            <h4 data-redline=\"title\" className=\"text-base/6 font-medium tracking-tight\">\n              Kessel Floor Lamp\n            </h4>\n            <p data-redline=\"price\" className=\"text-sm/5 text-zinc-500 tabular-nums dark:text-zinc-400\">\n              $240\n            </p>\n          </div>\n          <button\n            data-redline=\"button\"\n            type=\"button\"\n            className=\"h-11 rounded-lg bg-zinc-900 px-4 text-sm font-medium text-white dark:bg-zinc-50 dark:text-zinc-900\"\n          >\n            Add to cart\n          </button>\n        </article>\n      </Redline>\n    </section>\n  );\n}\n"
    }
  ]
}