{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "source-card-demo",
  "title": "Source Card Demo",
  "description": "A worked example of Source Card: One retrieved passage: where it came from, what it said, and how well it matched.",
  "registryDependencies": [
    "https://ui.tinkererslabs.com/r/source-card.json"
  ],
  "files": [
    {
      "path": "components/demos/source-card-demo.tsx",
      "content": "\"use client\"\n\nimport { SourceCard } from \"@/registry/default/source-card/source-card\"\n\nconst results = [\n  {\n    id: \"wcag\",\n    title: \"Understanding Success Criterion 2.5.8: Target Size (Minimum)\",\n    url: \"https://www.w3.org/WAI/WCAG22/Understanding/target-size-minimum.html\",\n    snippet:\n      \"The size of the target for pointer inputs is at least 24 by 24 CSS pixels, except where spacing, equivalents, or inline targets apply.\",\n    score: 0.94,\n  },\n  {\n    id: \"aria\",\n    title: \"ARIA Authoring Practices: Combobox Pattern\",\n    url: \"https://www.w3.org/WAI/ARIA/apg/patterns/combobox/\",\n    snippet:\n      \"A combobox is an input that controls another element, such as a listbox, that can dynamically pop up to help the user set its value.\",\n    score: 0.71,\n  },\n]\n\nexport function SourceCardDemo() {\n  return (\n    <div className=\"grid w-full max-w-xl gap-2\">\n      {results.map((result, index) => (\n        <SourceCard\n          key={result.id}\n          index={index + 1}\n          title={result.title}\n          url={result.url}\n          snippet={result.snippet}\n          score={result.score}\n        />\n      ))}\n    </div>\n  )\n}\n",
      "type": "registry:example"
    }
  ],
  "type": "registry:example"
}