{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "jot-plans-demo",
  "type": "registry:block",
  "title": "Jot: Follow the Pick",
  "description": "Hand-Drawn Annotation Arrow example, Follow the Pick: Three plans as radio cards. The note swings its arrow to whichever plan you pick and rewrites itself for it. A take on the annotation (arrow). Fits hero, pricing, onboarding and testimonials sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "hero",
    "pricing",
    "onboarding",
    "testimonials",
    "annotation",
    "tooltip",
    "svg"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/jot#jot-plans-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/jot.json"
  ],
  "files": [
    {
      "path": "components/jot-plans-demo.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { Jot } from \"@/components/ui/jot\";\n\nconst PLANS = [\n  {\n    id: \"solo\",\n    name: \"Solo\",\n    price: 0,\n    blurb: \"One client, every file\",\n    terms: \"Free for good, no card needed\",\n    note: \"free forever, no card needed\",\n  },\n  {\n    id: \"studio\",\n    name: \"Studio\",\n    price: 24,\n    blurb: \"Ten clients, your logo\",\n    terms: \"14 days free, then $24 a month\",\n    note: \"most studios start here\",\n  },\n  {\n    id: \"agency\",\n    name: \"Agency\",\n    price: 79,\n    blurb: \"Every client, with SSO\",\n    terms: \"14 days free, then $79 a month\",\n    note: \"for when you outgrow ten\",\n  },\n] as const;\n\ntype PlanId = (typeof PLANS)[number][\"id\"];\n\nexport function JotPlansDemo() {\n  const name = React.useId();\n  const [picked, setPicked] = React.useState<PlanId>(\"studio\");\n  const plan = PLANS.find((p) => p.id === picked) ?? PLANS[1];\n  const index = PLANS.indexOf(plan);\n\n  return (\n    <div data-jot-scope className=\"@container/plans relative w-full max-w-[38rem] px-2 pt-24 pb-4\">\n      <fieldset>\n        <legend className=\"text-[13px] font-medium text-zinc-500 dark:text-zinc-400\">Lantern plans</legend>\n        <p className=\"mt-1 max-w-[16ch] text-xl/tight font-semibold tracking-[-0.02em] text-balance text-zinc-950 dark:text-white\">\n          Client portals for small studios\n        </p>\n\n        <div className=\"mt-6 grid grid-cols-3 gap-2 @md/plans:gap-3\">\n          {PLANS.map((p) => (\n            <label\n              key={p.id}\n              data-plan={p.id}\n              className=\"group relative flex cursor-pointer flex-col rounded-2xl border border-zinc-950/10 bg-white p-3 transition-[border-color,box-shadow] duration-200 ease-out hover:border-zinc-950/25 has-checked:border-zinc-950 has-checked:shadow-[0_0_0_1px_var(--color-zinc-950)] has-focus-visible:ring-2 has-focus-visible:ring-blue-500 has-focus-visible:ring-offset-2 @md/plans:p-4 dark:border-white/10 dark:bg-zinc-900 dark:hover:border-white/25 dark:has-checked:border-white dark:has-checked:shadow-[0_0_0_1px_var(--color-white)] dark:has-focus-visible:ring-offset-zinc-950\"\n            >\n              <input\n                type=\"radio\"\n                name={name}\n                value={p.id}\n                checked={picked === p.id}\n                onChange={() => setPicked(p.id)}\n                className=\"sr-only\"\n              />\n              <span className=\"flex items-center justify-between gap-2\">\n                <span className=\"text-sm font-medium text-zinc-950 dark:text-white\">{p.name}</span>\n                <span\n                  aria-hidden\n                  className=\"grid size-4 place-items-center rounded-full border border-zinc-950/20 transition-colors duration-150 group-has-checked:border-zinc-950 dark:border-white/25 dark:group-has-checked:border-white\"\n                >\n                  <span className=\"size-2 scale-50 rounded-full bg-zinc-950 opacity-0 transition-[scale,opacity] duration-150 ease-out group-has-checked:scale-100 group-has-checked:opacity-100 dark:bg-white\" />\n                </span>\n              </span>\n              <span className=\"mt-4 flex items-baseline gap-0.5 text-zinc-950 dark:text-white\">\n                <span className=\"text-2xl/none font-semibold tracking-tight tabular-nums @md/plans:text-[1.75rem]/none\">\n                  ${p.price}\n                </span>\n                <span className=\"text-xs text-zinc-500 dark:text-zinc-400\">/mo</span>\n              </span>\n              <span className=\"mt-2 text-xs/4 text-pretty text-zinc-500 dark:text-zinc-400\">{p.blurb}</span>\n            </label>\n          ))}\n        </div>\n      </fieldset>\n\n      <div className=\"mt-3 flex flex-wrap items-center justify-between gap-x-4 gap-y-3 rounded-2xl bg-zinc-100/80 py-2.5 pr-2.5 pl-4 dark:bg-white/5\">\n        <p className=\"text-sm text-zinc-600 dark:text-zinc-400\" aria-live=\"polite\">\n          {plan.terms}\n        </p>\n        <a\n          href=\"#start\"\n          className=\"inline-flex h-9 items-center rounded-full bg-zinc-950 px-4 text-sm font-medium text-white outline-none hover:bg-zinc-800 focus-visible:ring-2 focus-visible:ring-zinc-950 focus-visible:ring-offset-2 dark:bg-white dark:text-zinc-950 dark:hover:bg-zinc-200 dark:focus-visible:ring-white dark:focus-visible:ring-offset-zinc-950\"\n        >\n          Start with {plan.name}\n        </a>\n      </div>\n\n      <Jot\n        to={`[data-plan=\"${picked}\"]`}\n        at=\"top\"\n        // Leave sideways and land heading down: bow up toward whichever side the plan is on.\n        bend={index === 2 ? -0.45 : 0.45}\n        tilt={-2}\n        trigger=\"mount\"\n        delay={0.3}\n        className=\"absolute top-4 right-[8%] text-xl/snug text-blue-600 @md/plans:right-[14%] dark:text-blue-400\"\n      >\n        {plan.note}\n      </Jot>\n    </div>\n  );\n}\n"
    }
  ]
}