{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "lodestone-paths-demo",
  "type": "registry:block",
  "title": "Lodestone: Two Paths",
  "description": "Magnetic Field Background example, Two Paths: A hero with a primary and a secondary call to action. The field rests on the primary; lean toward the other and its `strength` takes over, so the field swings across in a wave from that button. A take on the animated background (backdrop). Fits hero and CTA sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "hero",
    "cta",
    "animated-background",
    "background",
    "interaction",
    "canvas"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/lodestone#lodestone-paths-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/lodestone.json"
  ],
  "files": [
    {
      "path": "components/lodestone-paths-demo.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { Lodestone, LodestoneQuiet, LodestoneTarget } from \"@/components/ui/lodestone\";\n\ntype Path = \"build\" | \"sales\";\n\nexport function LodestonePathsDemo() {\n  // The field rests on the primary path and follows whichever one the visitor leans toward.\n  const [leaning, setLeaning] = React.useState<Path | null>(null);\n  const active = leaning ?? \"build\";\n\n  const lean = (path: Path) => ({\n    strength: active === path ? 1 : 0.12,\n    onPointerEnter: () => setLeaning(path),\n    onPointerLeave: () => setLeaning(null),\n    onFocus: () => setLeaning(path),\n    onBlur: () => setLeaning(null),\n  });\n\n  return (\n    <Lodestone\n      cursor={0.6}\n      className=\"flex h-[var(--demo-height,32rem)] w-full flex-col items-center justify-center rounded-2xl border border-border bg-background px-6 text-center text-foreground\"\n    >\n      <LodestoneQuiet className=\"flex flex-col items-center\">\n        <h2 className=\"max-w-[16ch] text-4xl/[1.05] font-semibold tracking-tight text-balance sm:text-5xl/[1.03]\">\n          Your first agent ships this afternoon\n        </h2>\n        <p className=\"mt-4 max-w-sm text-base/7 text-pretty text-muted-foreground\">\n          Start from a template on your own, or walk through your stack with an engineer.\n        </p>\n      </LodestoneQuiet>\n\n      <div className=\"mt-10 flex flex-wrap items-center justify-center gap-3\">\n        <LodestoneTarget {...lean(\"build\")}>\n          <a\n            href=\"#start\"\n            className=\"inline-flex h-11 items-center rounded-full bg-foreground px-6 text-sm font-medium text-background\"\n          >\n            Start building free\n          </a>\n        </LodestoneTarget>\n        <LodestoneTarget {...lean(\"sales\")}>\n          <a\n            href=\"#sales\"\n            className=\"inline-flex h-11 items-center rounded-full border border-border bg-background px-6 text-sm font-medium transition-colors hover:bg-muted\"\n          >\n            Talk to an engineer\n          </a>\n        </LodestoneTarget>\n      </div>\n    </Lodestone>\n  );\n}\n"
    }
  ]
}