{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "social-link",
  "title": "Social Link",
  "description": "A social media link component.",
  "dependencies": [],
  "registryDependencies": [],
  "files": [
    {
      "path": "src/components/ui/SocialLink.tsx",
      "content": "import React from \"react\";\nimport { IconProps } from \"phosphor-react\";\nimport { clsx } from \"clsx\"; // or your `cn` utility\n\ntype SocialLinkProps = {\n  href: string;\n  icon: React.ElementType<IconProps>;\n  size?: \"sm\" | \"md\" | \"lg\";\n  label?: string;\n  className?: string;\n  hoverColorClass?: string;\n  weight?: IconProps[\"weight\"]; // 👈 add weight prop\n  color?: \"white\";\n};\n\nconst sizeMap = {\n  sm: \"w-6 h-6 text-base\",\n  md: \"w-8 h-8 text-lg\",\n  lg: \"w-10 h-10 text-2xl\",\n};\n\nconst iconSizeMap = {\n  sm: 16,\n  md: 24,\n  lg: 30,\n};\n\nexport const SocialLink: React.FC<SocialLinkProps> = ({\n  href,\n  icon: Icon,\n  size = \"md\",\n  label,\n  className = \"\",\n  hoverColorClass = \"group-hover:text-ultradark\",\n  weight = \"fill\", // 👈 default to \"fill\"\n}) => {\n  return (\n    <a\n      href={href}\n      target=\"_blank\"\n      rel=\"noopener noreferrer\"\n      aria-label={label}\n      className={clsx(\n        \"group inline-flex items-center justify-center rounded-full transition-colors\",\n        sizeMap[size],\n        className,\n      )}\n    >\n      <Icon\n        size={iconSizeMap[size]}\n        weight={weight}\n        aria-hidden={!!label}\n        className={clsx(\" transition-colors\", hoverColorClass)}\n      />\n    </a>\n  );\n};\n",
      "type": "registry:ui",
      "target": "components/ui/SocialLink.tsx"
    }
  ],
  "type": "registry:ui"
}