{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "lodestone-demo",
  "type": "registry:block",
  "title": "Lodestone: Waitlist Hero",
  "description": "Magnetic Field Background example, Waitlist Hero: An AI startup's waitlist hero. The whole email pill is the magnet: the field loops out from it, parts around the headline, and bends toward the pointer. Join, and every hairline swings to north with `aligned`; Undo lets the field take them back. 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-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/lodestone.json"
  ],
  "files": [
    {
      "path": "components/lodestone-demo.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { Lodestone, LodestoneQuiet, LodestoneTarget } from \"@/components/ui/lodestone\";\n\nexport function LodestoneDemo() {\n  const [joined, setJoined] = React.useState(false);\n  const [email, setEmail] = React.useState(\"\");\n\n  return (\n    <Lodestone\n      aligned={joined}\n      className=\"flex h-[var(--demo-height,36rem)] 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        <span className=\"rounded-full border border-border bg-background px-3 py-1 text-xs font-medium text-muted-foreground\">\n          Private beta · 2,480 teams waiting\n        </span>\n        <h2 className=\"mt-6 max-w-[15ch] text-4xl/[1.05] font-semibold tracking-tight text-balance sm:text-6xl/[1.02]\">\n          Agents that pull in one direction\n        </h2>\n        <p className=\"mt-5 max-w-md text-base/7 text-pretty text-muted-foreground\">\n          Meridian lines up every agent in your stack behind one goal, one plan and one log you\n          can read.\n        </p>\n      </LodestoneQuiet>\n\n      <LodestoneTarget className=\"mt-10 h-12\">\n        {joined ? (\n          <div className=\"flex h-12 items-center gap-3 rounded-full border border-border bg-background pr-2 pl-5 text-sm\">\n            <span className=\"font-medium\">You&apos;re in. Number 2,481.</span>\n            <button\n              type=\"button\"\n              onClick={() => {\n                setJoined(false);\n                setEmail(\"\");\n              }}\n              className=\"rounded-full px-3 py-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground\"\n            >\n              Undo\n            </button>\n          </div>\n        ) : (\n          <form\n            onSubmit={(e) => {\n              e.preventDefault();\n              setJoined(true);\n            }}\n            className=\"flex h-12 items-center rounded-full border border-border bg-background p-1 shadow-sm\"\n          >\n            <label htmlFor=\"lodestone-email\" className=\"sr-only\">\n              Work email\n            </label>\n            <input\n              id=\"lodestone-email\"\n              type=\"email\"\n              required\n              value={email}\n              onChange={(e) => setEmail(e.target.value)}\n              placeholder=\"you@company.com\"\n              className=\"h-full w-44 bg-transparent px-4 text-sm outline-none placeholder:text-muted-foreground sm:w-56\"\n            />\n            <button\n              type=\"submit\"\n              className=\"h-10 rounded-full bg-foreground px-5 text-sm font-medium text-background transition-transform active:scale-[0.97]\"\n            >\n              Join the waitlist\n            </button>\n          </form>\n        )}\n      </LodestoneTarget>\n    </Lodestone>\n  );\n}\n"
    }
  ]
}