{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "footer-section",
  "title": "Footer Section",
  "description": "A minimal site footer with up to 4 link columns, a hover-underline link style, paper/glass/custom theming, and a copyright bar.",
  "dependencies": [
    "clsx",
    "tailwind-merge"
  ],
  "files": [
    {
      "path": "registry/new-york/footer-section/footer-section.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 FooterSectionTheme = \"dark\" | \"light\" | \"custom\";\n\nexport interface FooterSectionLink {\n  label: string;\n  url: string;\n}\n\nexport interface FooterSectionColumn {\n  title: string;\n  links: FooterSectionLink[];\n}\n\nexport interface FooterSectionCustomColors {\n  bg?: string;\n  fg?: string;\n  headingColor?: string;\n  linkColor?: string;\n  copyrightColor?: string;\n  createdByColor?: string;\n}\n\nexport interface FooterSectionProps {\n  theme?: FooterSectionTheme;\n  customColors?: FooterSectionCustomColors;\n  columns?: FooterSectionColumn[];\n  accentColor?: string;\n  hoverUnderline?: boolean;\n  copyrightText?: string;\n  createdByText?: string;\n  createdByUrl?: string;\n  className?: string;\n}\n\nconst DEFAULT_COLUMNS: FooterSectionColumn[] = [\n  { title: \"Navigate\", links: [{ label: \"Home\", url: \"#\" }, { label: \"About\", url: \"#\" }, { label: \"Services\", url: \"#\" }, { label: \"Team\", url: \"#\" }] },\n  { title: \"Resources\", links: [{ label: \"Case Studies\", url: \"#\" }, { label: \"How We Work\", url: \"#\" }, { label: \"FAQ\", url: \"#\" }, { label: \"News\", url: \"#\" }] },\n  { title: \"Connect\", links: [{ label: \"Book a Call\", url: \"#\" }, { label: \"Twitter\", url: \"#\" }, { label: \"Instagram\", url: \"#\" }] },\n  { title: \"Legal\", links: [{ label: \"Privacy Policy\", url: \"#\" }, { label: \"Terms of Service\", url: \"#\" }, { label: \"Cookie Policy\", url: \"#\" }] },\n];\n\nfunction FooterLinkItem({\n  link,\n  fg,\n  accentColor,\n  showUnderline,\n  isDark,\n}: {\n  link: FooterSectionLink;\n  fg?: string;\n  accentColor: string;\n  showUnderline: boolean;\n  isDark: boolean;\n}) {\n  const [active, setActive] = React.useState(false);\n  const color = showUnderline ? fg : active ? accentColor : fg;\n  return (\n    <a\n      href={link.url}\n      onMouseEnter={() => setActive(true)}\n      onMouseLeave={() => setActive(false)}\n      onFocus={() => setActive(true)}\n      onBlur={() => setActive(false)}\n      className={cn(\"relative inline-flex w-fit pb-0.5 text-sm no-underline outline-none\", !color && (isDark ? \"text-[#f5f4f1]/60\" : \"text-[#0e0e0e]/60\"))}\n      style={{ color, boxShadow: active ? `0 0 0 2px ${accentColor}40` : \"none\", borderRadius: 2, transition: \"color 200ms ease, box-shadow 150ms ease\" }}\n    >\n      {link.label}\n      {showUnderline && (\n        <span\n          className=\"absolute bottom-0 left-0 h-px w-full origin-left transition-transform duration-300\"\n          style={{ background: accentColor, transform: active ? \"scaleX(1)\" : \"scaleX(0)\", transitionTimingFunction: \"cubic-bezier(0.16,1,0.3,1)\" }}\n        />\n      )}\n    </a>\n  );\n}\n\nfunction CreatedByLink({ text, url, fg, isDark }: { text: string; url: string; fg?: string; isDark: boolean }) {\n  const [active, setActive] = React.useState(false);\n  return (\n    <a\n      href={url}\n      onMouseEnter={() => setActive(true)}\n      onMouseLeave={() => setActive(false)}\n      onFocus={() => setActive(true)}\n      onBlur={() => setActive(false)}\n      className={cn(\n        \"text-[13px] no-underline outline-none\",\n        !fg && (isDark ? (active ? \"text-[#f5f4f1]\" : \"text-[#f5f4f1]/60\") : active ? \"text-[#0e0e0e]\" : \"text-[#0e0e0e]/60\"),\n      )}\n      style={{ color: fg, boxShadow: active ? `0 0 0 2px color-mix(in srgb, currentColor 19%, transparent)` : \"none\", borderRadius: 2, transition: \"color 200ms ease, box-shadow 150ms ease\" }}\n    >\n      {text}\n    </a>\n  );\n}\n\nexport function FooterSection({\n  theme = \"dark\",\n  customColors,\n  columns = DEFAULT_COLUMNS,\n  accentColor = \"#c44b2b\",\n  hoverUnderline = true,\n  copyrightText = \"© 2026 Studio. All rights reserved.\",\n  createdByText = \"Built with ReactFrame\",\n  createdByUrl = \"https://reactframe.com\",\n  className,\n}: FooterSectionProps) {\n  const isCustom = theme === \"custom\";\n  const isDark = theme === \"dark\";\n  const cc = isCustom ? customColors : undefined;\n\n  return (\n    <footer\n      role=\"contentinfo\"\n      className={cn(\"relative w-full\", !isCustom && (isDark ? \"bg-[#0e0e0e] text-[#f5f4f1]\" : \"bg-[#f5f4f1] text-[#0e0e0e]\"), className)}\n      style={{\n        transition: \"background-color 600ms cubic-bezier(0.16, 1, 0.3, 1), color 600ms cubic-bezier(0.16, 1, 0.3, 1)\",\n        ...(isCustom ? { background: customColors?.bg ?? \"#1a1a2e\", color: customColors?.fg ?? \"#ffffff\" } : undefined),\n      }}\n    >\n      <div className=\"mx-auto max-w-[1280px] px-6 py-12 sm:px-12 sm:py-16\">\n        <nav aria-label=\"Footer navigation\" className=\"grid grid-cols-2 gap-x-8 gap-y-10 sm:flex sm:justify-between sm:gap-8\">\n          {columns.map((group, gi) => (\n            <div key={gi} className=\"flex flex-col\">\n              <h2 className=\"m-0 mb-[18px] text-[15px] font-semibold tracking-[-0.01em]\" style={{ color: cc?.headingColor }}>\n                {group.title}\n              </h2>\n              <ul className=\"m-0 flex list-none flex-col gap-3.5 p-0\">\n                {group.links.map((link, li) => (\n                  <li key={li}>\n                    <FooterLinkItem link={link} fg={cc?.linkColor} accentColor={accentColor} showUnderline={hoverUnderline} isDark={isCustom ? true : isDark} />\n                  </li>\n                ))}\n              </ul>\n            </div>\n          ))}\n        </nav>\n\n        <div\n          className={cn(\n            \"mt-12 flex flex-col items-start justify-between gap-2 border-t pt-6 sm:mt-14 sm:flex-row sm:items-center sm:gap-0\",\n            !isCustom && (isDark ? \"border-[#f5f4f1]/8\" : \"border-[#0e0e0e]/8\"),\n          )}\n          style={isCustom ? { borderColor: `${customColors?.fg ?? \"#ffffff\"}14` } : undefined}\n        >\n          <span\n            className={cn(\"text-[13px]\", !cc?.copyrightColor && (isDark ? \"text-[#f5f4f1]/45\" : \"text-[#0e0e0e]/45\"))}\n            style={{ color: cc?.copyrightColor }}\n          >\n            {copyrightText}\n          </span>\n          {createdByText && <CreatedByLink text={createdByText} url={createdByUrl} fg={cc?.createdByColor} isDark={isCustom ? true : isDark} />}\n        </div>\n      </div>\n    </footer>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}