{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "component-preview-demo",
  "title": "Component Preview Demo",
  "description": "A worked example of Component Preview: A framed example with a tab for the source beside it, and the live one still running when you switch back.",
  "registryDependencies": [
    "https://ui.tinkererslabs.com/r/component-preview.json"
  ],
  "files": [
    {
      "path": "components/demos/component-preview-demo.tsx",
      "content": "\"use client\"\n\nimport { ComponentPreview } from \"@/registry/default/component-preview/component-preview\"\nimport { HoldButton } from \"@/registry/default/hold-button/hold-button\"\n\nconst source = `<HoldButton onComplete={remove}>\n  Delete everything\n</HoldButton>`\n\nexport function ComponentPreviewDemo() {\n  return (\n    <div className=\"w-full max-w-xl\">\n      <ComponentPreview code={source} title=\"Hold Button\">\n        <HoldButton onComplete={() => {}}>Delete everything</HoldButton>\n      </ComponentPreview>\n    </div>\n  )\n}\n",
      "type": "registry:example"
    }
  ],
  "type": "registry:example"
}