{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "card-signatures-signature-details-1",
  "type": "registry:block",
  "title": "Signature details",
  "description": "Workspace card from the overtrue/ui workspace examples. Editable source, scoped styles, and demo interactions.",
  "categories": [
    "cards",
    "workspace"
  ],
  "registryDependencies": [
    "https://ui.overtrue.xyz/r/overtrue-card-foundation.json"
  ],
  "files": [
    {
      "path": "src/blocks/registry/signatures-signature-details-1.tsx",
      "type": "registry:component",
      "target": "components/overtrue/blocks/signatures-signature-details-1.tsx",
      "content": "\"use client\";\nimport { BlockFrame } from \"./runtime/blocks/frame\";\nimport \"./runtime/cards.css\";\n// Extracted from src/components/overtrue/scenes/communication.tsx:538.\nimport { useState } from \"react\";\nimport { SceneCard, Action } from \"./runtime/components/overtrue/scenes/shared\";\n\nfunction CardExample() {\n  const [name, setName] = useState(\"Maya Okafor\");\n  const [role, setRole] = useState(\"Design director\");\n  const [email, setEmail] = useState(\"hello@acme.example\");\n  const [copied, setCopied] = useState(false);\n  const [copyError, setCopyError] = useState(false);\n\n  return (\n    <>\n      <div className=\"overtrue-block-content\" data-workspace-page=\"signatures\">\n        <SceneCard title=\"Signature details\">\n          <form\n            className=\"scene-form\"\n            onSubmit={(e) => e.preventDefault()}\n            onChange={() => {\n              setCopied(false);\n              setCopyError(false);\n            }}\n          >\n            <label>\n              Full name\n              <input value={name} onChange={(e) => setName(e.target.value)} />\n            </label>\n            <label>\n              Role\n              <input value={role} onChange={(e) => setRole(e.target.value)} />\n            </label>\n            <label>\n              Email address\n              <input\n                type=\"email\"\n                value={email}\n                onChange={(event) => setEmail(event.target.value)}\n              />\n            </label>\n            <Action\n              onClick={async () => {\n                try {\n                  await navigator.clipboard.writeText(\n                    `${name}\\n${role} · Acme Studio\\n${email}`,\n                  );\n                  setCopied(true);\n                  setCopyError(false);\n                } catch {\n                  setCopied(false);\n                  setCopyError(true);\n                }\n              }}\n            >\n              Copy signature\n            </Action>\n            {copied && <p role=\"status\">Signature copied.</p>}\n            {copyError && (\n              <label>\n                Copy manually\n                <textarea\n                  readOnly\n                  value={`${name}\\n${role} · Acme Studio\\n${email}`}\n                  onFocus={(e) => e.target.select()}\n                />\n                <small role=\"status\">\n                  Clipboard access is unavailable. Select and copy the signature\n                  above.\n                </small>\n              </label>\n            )}\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/signatures-signature-details-1. Includes the shared card foundation and hosted demo imagery. Replace sample data and navigation with your application data."
}
