{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "footer-premium",
  "title": "Footer Premium",
  "description": "A responsive site footer with a logo, description, social links, multi-column link groups, and a copyright line.",
  "dependencies": [
    "clsx",
    "tailwind-merge"
  ],
  "files": [
    {
      "path": "registry/new-york/footer-premium/footer-premium.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nfunction cn(...inputs: ClassValue[]) {\n  return twMerge(clsx(inputs));\n}\n\nexport type FooterPlatform = \"x\" | \"youtube\" | \"instagram\" | \"linkedin\" | \"tiktok\" | \"facebook\" | \"discord\" | \"github\";\n\nexport interface FooterSocialLink {\n  platform: FooterPlatform;\n  url: string;\n}\n\nexport interface FooterColumnLink {\n  label: string;\n  url: string;\n}\n\nexport interface FooterColumn {\n  title: string;\n  links: FooterColumnLink[];\n}\n\nexport type FooterPremiumTheme = \"dark\" | \"light\";\n\nexport interface FooterPremiumProps extends Omit<React.ComponentPropsWithoutRef<\"footer\">, \"children\"> {\n  theme?: FooterPremiumTheme;\n  backgroundColor?: string;\n  textColor?: string;\n  mutedColor?: string;\n  logoImage?: string;\n  logoUrl?: string;\n  logoLabel?: string;\n  /** Shows a pill link (e.g. \"Official Partner\") below the logo row. */\n  showPill?: boolean;\n  pillText?: string;\n  pillUrl?: string;\n  description?: string;\n  socials?: FooterSocialLink[];\n  columns?: FooterColumn[];\n  copyrightText?: string;\n  paddingTop?: number;\n  paddingRight?: number;\n  paddingBottom?: number;\n  paddingLeft?: number;\n}\n\nfunction SocialIcon({ platform, size = 15 }: { platform: FooterPlatform; size?: number }) {\n  const common = { width: size, height: size, viewBox: \"0 0 24 24\", fill: \"currentColor\" };\n  switch (platform) {\n    case \"x\":\n      return (\n        <svg {...common}>\n          <path d=\"M4 3h3.6l4 5.4L16.1 3H19l-6 7.1L19.5 21h-3.6l-4.3-5.8L6.2 21H3.3l6.4-7.5L4 3z\" />\n        </svg>\n      );\n    case \"youtube\":\n      return (\n        <svg {...common}>\n          <path d=\"M21.6 7.6c-.2-1-1-1.8-2-2C17.9 5.2 12 5.2 12 5.2s-5.9 0-7.6.4c-1 .2-1.8 1-2 2C2 9.3 2 12 2 12s0 2.7.4 4.4c.2 1 1 1.8 2 2 1.7.4 7.6.4 7.6.4s5.9 0 7.6-.4c1-.2 1.8-1 2-2 .4-1.7.4-4.4.4-4.4s0-2.7-.4-4.4zM10 15.5v-7l6 3.5-6 3.5z\" />\n        </svg>\n      );\n    case \"instagram\":\n      return (\n        <svg {...common}>\n          <path d=\"M8 3h8a5 5 0 0 1 5 5v8a5 5 0 0 1-5 5H8a5 5 0 0 1-5-5V8a5 5 0 0 1 5-5zm0 2a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V8a3 3 0 0 0-3-3H8zm4 3.5a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9zm0 2a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM17.4 6a1.1 1.1 0 1 1 0 2.2 1.1 1.1 0 0 1 0-2.2z\" />\n        </svg>\n      );\n    case \"linkedin\":\n      return (\n        <svg {...common}>\n          <path d=\"M5 3.5A1.8 1.8 0 1 0 5 7a1.8 1.8 0 0 0 0-3.5zM3.4 9h3.2v11.5H3.4V9zM9.7 9h3.1v1.6h.05c.43-.8 1.5-1.65 3.05-1.65 3.27 0 3.87 2.15 3.87 4.95v6.6h-3.2v-5.85c0-1.4-.02-3.2-1.95-3.2-1.95 0-2.25 1.52-2.25 3.1v5.95H9.7V9z\" />\n        </svg>\n      );\n    case \"tiktok\":\n      return (\n        <svg {...common}>\n          <path d=\"M14 2h2.7c.2 1.6 1.4 3 3.3 3.3v2.8a6 6 0 0 1-3.3-1v6.8a5.2 5.2 0 1 1-5.2-5.2c.2 0 .4 0 .6.03v2.8a2.4 2.4 0 1 0 1.7 2.3V2z\" />\n        </svg>\n      );\n    case \"facebook\":\n      return (\n        <svg {...common}>\n          <path d=\"M13.5 21v-7.2h2.4l.4-2.8h-2.8V9.1c0-.8.2-1.3 1.4-1.3h1.5V5.3c-.3 0-1.1-.1-2.1-.1-2.2 0-3.6 1.3-3.6 3.7v2.1H8.3v2.8h2.4V21h2.8z\" />\n        </svg>\n      );\n    case \"discord\":\n      return (\n        <svg {...common}>\n          <path d=\"M18.9 6.2A15.7 15.7 0 0 0 15.1 5l-.2.4c1.3.4 2.4.9 3.5 1.6a12 12 0 0 0-12.8 0c1.1-.7 2.3-1.2 3.5-1.6L8.9 5a15.7 15.7 0 0 0-3.8 1.2C2.9 9.8 2.3 13.3 2.5 16.7a12.5 12.5 0 0 0 3.9 2c.3-.4.6-.9.8-1.4-.5-.2-.9-.4-1.3-.6.1-.1.2-.2.3-.3 2.5 1.2 5.2 1.2 7.7 0 .1.1.2.2.3.3-.4.2-.8.4-1.3.6.2.5.5 1 .8 1.4a12.5 12.5 0 0 0 3.9-2c.2-3.9-.7-7.3-2.7-10.5zM9.5 14.3c-.8 0-1.4-.7-1.4-1.6 0-.9.6-1.6 1.4-1.6.8 0 1.4.7 1.4 1.6 0 .9-.6 1.6-1.4 1.6zm5 0c-.8 0-1.4-.7-1.4-1.6 0-.9.6-1.6 1.4-1.6.8 0 1.4.7 1.4 1.6 0 .9-.6 1.6-1.4 1.6z\" />\n        </svg>\n      );\n    case \"github\":\n      return (\n        <svg {...common}>\n          <path d=\"M12 2a10 10 0 0 0-3.2 19.5c.5.1.7-.2.7-.5v-1.8c-2.8.6-3.4-1.3-3.4-1.3-.5-1.1-1.1-1.5-1.1-1.5-.9-.6.1-.6.1-.6 1 .1 1.5 1 1.5 1 .9 1.5 2.3 1.1 2.9.8.1-.7.4-1.1.6-1.4-2.3-.3-4.6-1.1-4.6-5 0-1.1.4-2 1-2.7-.1-.3-.5-1.3.1-2.6 0 0 .9-.3 2.7 1a9.5 9.5 0 0 1 5 0c1.9-1.3 2.7-1 2.7-1 .6 1.3.2 2.3.1 2.6.6.7 1 1.6 1 2.7 0 3.9-2.3 4.7-4.6 5 .4.3.7.9.7 1.9v2.8c0 .3.2.6.7.5A10 10 0 0 0 12 2z\" />\n        </svg>\n      );\n  }\n}\n\nconst SOCIAL_LABEL: Record<FooterPlatform, string> = { x: \"X\", youtube: \"YouTube\", instagram: \"Instagram\", linkedin: \"LinkedIn\", tiktok: \"TikTok\", facebook: \"Facebook\", discord: \"Discord\", github: \"GitHub\" };\n\nconst DEFAULT_SOCIALS: FooterSocialLink[] = [\n  { platform: \"x\", url: \"https://x.com\" },\n  { platform: \"youtube\", url: \"https://youtube.com\" },\n  { platform: \"github\", url: \"https://github.com\" },\n];\n\nconst DEFAULT_COLUMNS: FooterColumn[] = [\n  { title: \"Product\", links: [{ label: \"Components\", url: \"#\" }, { label: \"Templates\", url: \"#\" }, { label: \"Pricing\", url: \"#\" }] },\n  { title: \"Resources\", links: [{ label: \"Docs\", url: \"#\" }, { label: \"Blog\", url: \"#\" }, { label: \"Support\", url: \"#\" }] },\n  { title: \"Legal\", links: [{ label: \"Privacy Policy\", url: \"#\" }, { label: \"Terms\", url: \"#\" }] },\n];\n\nexport function FooterPremium({\n  theme = \"dark\",\n  backgroundColor,\n  textColor,\n  mutedColor,\n  logoImage,\n  logoUrl = \"#\",\n  logoLabel = \"Studio\",\n  showPill = false,\n  pillText = \"Available for new projects\",\n  pillUrl = \"#\",\n  description = \"Premium, shadcn-compatible components for your next project.\",\n  socials = DEFAULT_SOCIALS,\n  columns = DEFAULT_COLUMNS,\n  copyrightText = `Copyright ${new Date().getFullYear()}. All rights reserved.`,\n  paddingTop = 64,\n  paddingRight = 64,\n  paddingBottom = 48,\n  paddingLeft = 64,\n  className,\n  style,\n  ...props\n}: FooterPremiumProps) {\n  const isDark = theme === \"dark\";\n  const bg = backgroundColor ?? (isDark ? \"#000000\" : \"#ffffff\");\n  const fg = textColor ?? (isDark ? \"#ffffff\" : \"#0e0e0e\");\n  const muted = mutedColor ?? (isDark ? \"rgba(255,255,255,0.55)\" : \"rgba(14,14,14,0.55)\");\n  const overlayBorder = isDark ? \"border-white/[0.14]\" : \"border-black/[0.14]\";\n  const overlayBg = isDark ? \"bg-white/[0.04]\" : \"bg-black/[0.04]\";\n  const socialBg = isDark ? \"bg-white/[0.06] hover:bg-white/[0.12]\" : \"bg-black/[0.06] hover:bg-black/[0.12]\";\n\n  return (\n    <footer\n      className={cn(\"w-full\", className)}\n      style={{ background: bg, fontFamily: \"-apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif\", ...style }}\n      {...props}\n    >\n      <div\n        className=\"mx-auto flex w-full max-w-6xl flex-col justify-between gap-10 md:flex-row md:gap-6\"\n        style={{ paddingTop, paddingRight, paddingBottom, paddingLeft }}\n      >\n        <div className=\"flex max-w-[360px] shrink-0 flex-col items-start\">\n          <a href={logoUrl} className=\"inline-flex items-center gap-2\">\n            {logoImage ? (\n              <img src={logoImage} alt={logoLabel} draggable={false} className=\"block h-8 w-auto select-none\" />\n            ) : (\n              <span className=\"text-lg font-bold\" style={{ color: fg }}>\n                {logoLabel}\n              </span>\n            )}\n          </a>\n\n          {showPill && (\n            <a\n              href={pillUrl}\n              className={cn(\"mt-5 inline-flex items-center gap-2 rounded-full border px-4 py-2 text-[13px] font-semibold whitespace-nowrap no-underline\", overlayBorder, overlayBg)}\n              style={{ color: fg }}\n            >\n              {pillText}\n            </a>\n          )}\n\n          {description && (\n            <p className=\"mt-5 max-w-[280px] text-sm leading-[1.6]\" style={{ color: muted }}>\n              {description}\n            </p>\n          )}\n\n          {socials.length > 0 && (\n            <div className=\"mt-[18px] flex gap-2.5\">\n              {socials.map((s, i) => (\n                <a\n                  key={i}\n                  href={s.url}\n                  aria-label={SOCIAL_LABEL[s.platform]}\n                  className={cn(\"flex h-[34px] w-[34px] shrink-0 items-center justify-center rounded-full transition-colors\", socialBg)}\n                  style={{ color: fg }}\n                >\n                  <SocialIcon platform={s.platform} />\n                </a>\n              ))}\n            </div>\n          )}\n\n          {copyrightText && (\n            <p className=\"mt-[22px] text-[13px]\" style={{ color: muted }}>\n              {copyrightText}\n            </p>\n          )}\n        </div>\n\n        <div className=\"flex flex-col flex-wrap gap-7 sm:flex-row sm:gap-14\">\n          {columns.map((col, ci) => (\n            <div key={ci} className=\"min-w-[120px]\">\n              {col.title && (\n                <p className=\"m-0 text-[15px] font-bold\" style={{ color: fg }}>\n                  {col.title}\n                </p>\n              )}\n              <div className=\"mt-[18px] flex flex-col gap-3.5\">\n                {col.links.map((l, li) => (\n                  <a key={li} href={l.url} className=\"text-sm no-underline transition-colors hover:opacity-80\" style={{ color: muted }}>\n                    {l.label}\n                  </a>\n                ))}\n              </div>\n            </div>\n          ))}\n        </div>\n      </div>\n    </footer>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}