{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "card-HighOrderPage-avatar-stack-empty-state-social-button-storage-meter-stars-segmen-8",
  "type": "registry:block",
  "title": "Workspace interface patterns",
  "description": "UI patterns card from the overtrue/ui workspace examples. Editable source, scoped styles, and demo interactions.",
  "categories": [
    "cards",
    "ui-patterns"
  ],
  "registryDependencies": [
    "https://ui.overtrue.xyz/r/overtrue-card-foundation.json"
  ],
  "files": [
    {
      "path": "src/blocks/registry/HighOrderPage-avatar-stack-empty-state-social-button-storage-meter-stars-segmen-8.tsx",
      "type": "registry:component",
      "target": "components/overtrue/blocks/HighOrderPage-avatar-stack-empty-state-social-button-storage-meter-stars-segmen-8.tsx",
      "content": "\"use client\";\nimport { BlockFrame } from \"./runtime/blocks/frame\";\nimport \"./runtime/cards.css\";\n// Extracted from src/pages/HighOrderPage.tsx:414.\nimport { useNavigate } from \"react-router-dom\";\nimport { useState } from \"react\";\nimport { SectionCard } from \"./runtime/components/overtrue/section-card\";\nimport { AvatarStack } from \"./runtime/components/overtrue/avatar-stack\";\nimport { EmptyState } from \"./runtime/components/overtrue/empty-state\";\nimport { SocialButton } from \"./runtime/components/overtrue/social-button\";\nimport { StorageMeter } from \"./runtime/components/overtrue/storage-meter\";\nimport { StarsRating } from \"./runtime/components/overtrue/stars-rating\";\nimport { Steps } from \"./runtime/components/overtrue/steps\";\nimport { SegmentedControl } from \"./runtime/components/overtrue/segmented-control\";\nimport { storageSegments, users } from \"./runtime/data/mock\";\n\nfunction CardExample() {\n  const navigate = useNavigate();\n  const [rating, setRating] = useState(4);\n  const [segment, setSegment] = useState(\"week\");\n\n  return (\n    <>\n      <div className=\"overtrue-block-content\" data-workspace-page=\"high-order\">\n        <SectionCard title=\"AvatarStack / EmptyState / SocialButton / StorageMeter / Stars / Segmented / Steps\">\n          <div className=\"grid grid-cols-1 gap-4 md:grid-cols-2\">\n            <div>\n              <div className=\"metric-label mb-2\">AvatarStack</div>\n              <AvatarStack users={users.map((u) => ({ name: u.name }))} />\n            </div>\n            <div className=\"flex flex-wrap items-start gap-2\">\n              <SocialButton brand=\"facebook\" asChild>\n                <a\n                  href=\"https://www.facebook.com/\"\n                  target=\"_blank\"\n                  rel=\"noopener noreferrer\"\n                >\n                  Facebook\n                </a>\n              </SocialButton>\n              <SocialButton brand=\"github\" asChild>\n                <a\n                  href=\"https://github.com/\"\n                  target=\"_blank\"\n                  rel=\"noopener noreferrer\"\n                >\n                  GitHub\n                </a>\n              </SocialButton>\n              <SocialButton brand=\"twitter\" asChild>\n                <a\n                  href=\"https://x.com/\"\n                  target=\"_blank\"\n                  rel=\"noopener noreferrer\"\n                >\n                  Twitter\n                </a>\n              </SocialButton>\n              <SocialButton brand=\"overtrue\" asChild>\n                <a href=\"/\">overtrue/ui</a>\n              </SocialButton>\n            </div>\n            <EmptyState\n              title=\"No Team Members\"\n              description=\"Invite your team to collaborate on this project.\"\n              action={{\n                label: \"Invite Members\",\n                onClick: () => navigate(\"/users\"),\n              }}\n            />\n            <StorageMeter\n              usedLabel=\"5760 MB\"\n              totalLabel=\"8 GB\"\n              segments={storageSegments}\n            />\n            <div className=\"space-y-2\">\n              <div className=\"metric-label\">StarsRating</div>\n              <StarsRating value={rating} onChange={setRating} size=\"lg\" />\n            </div>\n            <div className=\"space-y-2\">\n              <div className=\"metric-label\">SegmentedControl</div>\n              <SegmentedControl\n                value={segment}\n                onValueChange={setSegment}\n                options={[\n                  { value: \"week\", label: \"Week\" },\n                  { value: \"month\", label: \"Month\" },\n                  { value: \"year\", label: \"Year\" },\n                ]}\n              />\n            </div>\n          </div>\n          <div className=\"mt-4\">\n            <div className=\"metric-label mb-2\">Steps</div>\n            <Steps\n              current={1}\n              steps={[\n                { id: \"1\", title: \"Create project\" },\n                { id: \"2\", title: \"Invite team\" },\n                { id: \"3\", title: \"Launch\" },\n              ]}\n            />\n          </div>\n        </SectionCard>\n      </div>\n    </>\n  );\n}\n\nexport default function Block() { return <BlockFrame><CardExample /></BlockFrame>; }\n"
    }
  ],
  "docs": "Documentation: https://ui.overtrue.xyz/blocks/HighOrderPage-avatar-stack-empty-state-social-button-storage-meter-stars-segmen-8. Includes the shared card foundation and hosted demo imagery. Replace sample data and navigation with your application data."
}
