{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "macos-folder-cards",
  "type": "registry:ui",
  "title": "macOS Folder Cards",
  "dependencies": [
    "motion",
    "lucide-react"
  ],
  "files": [
    {
      "path": "components/ui/macos-folder-cards.tsx",
      "content": "\"use client\";\n\nimport React, { useState } from \"react\";\nimport { motion } from \"motion/react\";\nimport { Code2, FileText, Image as ImageIcon } from \"lucide-react\";\nimport { cn } from \"@/lib/utils\";\n\ninterface FolderCardItem {\n  id: string;\n  title: string;\n  meta: string;\n  accent: string;\n  icon: React.ReactNode;\n  rotate: number;\n  x: number;\n  y: number;\n}\n\nconst CARDS: FolderCardItem[] = [\n  {\n    id: \"specs\",\n    title: \"Specs.md\",\n    meta: \"14 KB\",\n    accent: \"text-emerald-400\",\n    icon: <FileText className=\"h-3.5 w-3.5\" />,\n    rotate: -14,\n    x: -44,\n    y: -36,\n  },\n  {\n    id: \"tokens\",\n    title: \"tokens.tsx\",\n    meta: \"8.2 KB\",\n    accent: \"text-blue-400\",\n    icon: <Code2 className=\"h-3.5 w-3.5\" />,\n    rotate: 0,\n    x: 0,\n    y: -48,\n  },\n  {\n    id: \"assets\",\n    title: \"hero.png\",\n    meta: \"420 KB\",\n    accent: \"text-amber-400\",\n    icon: <ImageIcon className=\"h-3.5 w-3.5\" />,\n    rotate: 14,\n    x: 44,\n    y: -36,\n  },\n];\n\nexport function MacosFolderCards({ className }: { className?: string }) {\n  const [open, setOpen] = useState(false);\n\n  return (\n    <div className={cn(\"flex flex-col items-center gap-3 py-6\", className)}>\n      <div\n        onMouseEnter={() => setOpen(true)}\n        onMouseLeave={() => setOpen(false)}\n        onClick={() => setOpen((o) => !o)}\n        className=\"relative flex h-32 w-40 cursor-pointer items-end justify-center select-none\"\n      >\n        {/* Folder Back Plate */}\n        <div className=\"absolute bottom-2 h-24 w-36 rounded-2xl border border-blue-400/30 bg-gradient-to-b from-blue-500 to-blue-600 shadow-lg\">\n          <div className=\"absolute -top-2.5 left-3 h-4 w-14 rounded-t-lg bg-blue-500\" />\n        </div>\n\n        {/* Fanning Cards */}\n        {CARDS.map((card, idx) => (\n          <motion.div\n            key={card.id}\n            animate={\n              open\n                ? {\n                    x: card.x,\n                    y: card.y,\n                    rotate: card.rotate,\n                    scale: 1,\n                    opacity: 1,\n                  }\n                : {\n                    x: (idx - 1) * 4,\n                    y: -6 - idx * 2,\n                    rotate: (idx - 1) * 3,\n                    scale: 0.9,\n                    opacity: 0.95,\n                  }\n            }\n            transition={{\n              type: \"spring\",\n              stiffness: 320,\n              damping: 22,\n              delay: open ? idx * 0.03 : 0,\n            }}\n            className=\"absolute bottom-7 flex h-20 w-24 flex-col justify-between rounded-xl border border-white/15 bg-zinc-900 p-2.5 shadow-xl\"\n          >\n            <div className={card.accent}>{card.icon}</div>\n            <div>\n              <div className=\"truncate text-[10px] font-semibold text-zinc-100\">\n                {card.title}\n              </div>\n              <div className=\"text-[9px] text-zinc-500\">{card.meta}</div>\n            </div>\n          </motion.div>\n        ))}\n\n        {/* Folder Front Lip */}\n        <motion.div\n          animate={{ rotateX: open ? -18 : 0, y: open ? 2 : 0 }}\n          transition={{ type: \"spring\", stiffness: 320, damping: 24 }}\n          style={{ transformOrigin: \"bottom\" }}\n          className=\"relative z-10 flex h-20 w-36 items-end rounded-2xl border border-white/20 bg-gradient-to-b from-sky-400/90 to-blue-600/95 p-3 shadow-[0_12px_25px_-8px_rgba(37,99,235,0.6)] backdrop-blur-sm\"\n        >\n          <div className=\"flex w-full items-center justify-between text-[10px] font-semibold text-white/95\">\n            <span>Design Kit</span>\n            <span className=\"rounded-full bg-black/20 px-1.5 py-0.5 text-[9px]\">\n              3 files\n            </span>\n          </div>\n        </motion.div>\n      </div>\n\n      <span className=\"text-[11px] text-zinc-500\">\n        Hover or click folder to fan cards\n      </span>\n    </div>\n  );\n}\n\n",
      "type": "registry:ui"
    }
  ]
}