{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "card-project-labels-across-your-projects-2",
  "type": "registry:block",
  "title": "Across your projects",
  "description": "Projects card from the overtrue/ui workspace examples. Editable source, scoped styles, and demo interactions.",
  "categories": [
    "cards",
    "projects"
  ],
  "registryDependencies": [
    "https://ui.overtrue.xyz/r/overtrue-card-foundation.json"
  ],
  "files": [
    {
      "path": "src/blocks/registry/project-labels-across-your-projects-2.tsx",
      "type": "registry:component",
      "target": "components/overtrue/blocks/project-labels-across-your-projects-2.tsx",
      "content": "\"use client\";\nimport { BlockFrame } from \"./runtime/blocks/frame\";\nimport \"./runtime/cards.css\";\n// Extracted from src/components/overtrue/scenes/workflows.tsx:800.\nimport { useState } from \"react\";\nimport { useWorkData } from \"./runtime/components/overtrue/workspace/work-data\";\nimport { SceneCard } from \"./runtime/components/overtrue/scenes/shared\";\n\nfunction CardExample() {\n  const { projects } = useWorkData();\n  const [labels] = useState<Record<string, string[]>>({\n    [projects[0].id]: [\"design\", \"client-review\"],\n  });\n  const [options] = useState([\n    { value: \"design\", label: \"Design\" },\n    { value: \"research\", label: \"Research\" },\n    { value: \"client-review\", label: \"Client review\" },\n    { value: \"handover\", label: \"Handover\" },\n    { value: \"blocked\", label: \"Blocked\" },\n  ]);\n\n  return (\n    <>\n      <div className=\"overtrue-block-content\" data-workspace-page=\"tags\">\n        <SceneCard title=\"Across your projects\">\n          {projects.map((project) => (\n            <div className=\"scene-list-row\" key={project.id}>\n              <div>\n                <strong>{project.name}</strong>\n                <small>{project.client}</small>\n              </div>\n              <div className=\"scene-label-list\">\n                {(labels[project.id] ?? []).length ? (\n                  labels[project.id].map((value) => (\n                    <span className=\"scene-tag\" key={value}>\n                      {options.find((option) => option.value === value)?.label}\n                    </span>\n                  ))\n                ) : (\n                  <span className=\"text-xs text-muted-foreground\">\n                    No labels\n                  </span>\n                )}\n              </div>\n            </div>\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/project-labels-across-your-projects-2. Includes the shared card foundation and hosted demo imagery. Replace sample data and navigation with your application data."
}
