{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "card-knowledge-collections-2",
  "type": "registry:block",
  "title": "Collections",
  "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/knowledge-collections-2.tsx",
      "type": "registry:component",
      "target": "components/overtrue/blocks/knowledge-collections-2.tsx",
      "content": "\"use client\";\nimport { BlockFrame } from \"./runtime/blocks/frame\";\nimport \"./runtime/cards.css\";\n// Extracted from src/components/overtrue/scenes/knowledge.tsx:141.\nimport { useState } from \"react\";\nimport { documents } from \"./runtime/data/workspace/studio\";\nimport { SceneCard, FilterTabs } from \"./runtime/components/overtrue/scenes/shared\";\n\nfunction CardExample({ id = \"search-results\" }: { id?: string } = {}) {\n  const [category, setCategory] = useState(\"All guides\");\n\n  return (\n    <>\n      <div className=\"overtrue-block-content\" data-workspace-page={id}>\n        <SceneCard title=\"Collections\">\n          <FilterTabs\n            items={[\n              \"All guides\",\n              ...new Set(documents.map((document) => document.category)),\n            ]}\n            value={category}\n            onChange={setCategory}\n          />\n        </SceneCard>\n      </div>\n    </>\n  );\n}\n\nexport default function Block() { return <BlockFrame><CardExample /></BlockFrame>; }\n"
    }
  ],
  "docs": "Documentation: https://ui.overtrue.xyz/blocks/knowledge-collections-2. Includes the shared card foundation and hosted demo imagery. Replace sample data and navigation with your application data."
}
