{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "card-plan-settings-billing-contact-2",
  "type": "registry:block",
  "title": "Billing contact",
  "description": "Forms & settings card from the overtrue/ui workspace examples. Editable source, scoped styles, and demo interactions.",
  "categories": [
    "cards",
    "forms-settings"
  ],
  "registryDependencies": [
    "https://ui.overtrue.xyz/r/overtrue-card-foundation.json"
  ],
  "files": [
    {
      "path": "src/blocks/registry/plan-settings-billing-contact-2.tsx",
      "type": "registry:component",
      "target": "components/overtrue/blocks/plan-settings-billing-contact-2.tsx",
      "content": "\"use client\";\nimport { BlockFrame } from \"./runtime/blocks/frame\";\nimport \"./runtime/cards.css\";\n// Extracted from src/components/overtrue/scenes/billing.tsx:533.\nimport { useState } from \"react\";\nimport { SceneCard, Action } from \"./runtime/components/overtrue/scenes/shared\";\n\nfunction CardExample() {\n  const [email, setEmail] = useState(\"billing@acme.example\");\n  const [saved, setSaved] = useState(false);\n\n  return (\n    <>\n      <div\n        className=\"overtrue-block-content\"\n        data-workspace-page=\"settings-plan\"\n      >\n        <SceneCard title=\"Billing contact\">\n          <form\n            className=\"scene-form\"\n            onSubmit={(event) => {\n              event.preventDefault();\n              setSaved(true);\n            }}\n          >\n            <label>\n              Invoice email\n              <input\n                type=\"email\"\n                required\n                value={email}\n                onChange={(event) => {\n                  setEmail(event.target.value);\n                  setSaved(false);\n                }}\n              />\n            </label>\n            <div className=\"scene-form-footer\">\n              <Action type=\"submit\" primary>\n                Save billing contact\n              </Action>\n              {saved && (\n                <span role=\"status\">\n                  Billing contact saved for this session.\n                </span>\n              )}\n            </div>\n          </form>\n        </SceneCard>\n      </div>\n    </>\n  );\n}\n\nexport default function Block() { return <BlockFrame><CardExample /></BlockFrame>; }\n"
    }
  ],
  "docs": "Documentation: https://ui.overtrue.xyz/blocks/plan-settings-billing-contact-2. Includes the shared card foundation and hosted demo imagery. Replace sample data and navigation with your application data."
}
