{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"site-footer","type":"registry:ui","title":"Site footer","description":"Link columns, social links and legal text.","dependencies":["clsx","tailwind-merge"],"registryDependencies":["https://caliperui.site/r/styles.json"],"files":[{"path":"ui/lib/cn.ts","type":"registry:ui","target":"components/ui/lib/cn.ts","content":"import { clsx, type ClassValue } from \"clsx\";\nimport { extendTailwindMerge } from \"tailwind-merge\";\n\nconst twMerge = extendTailwindMerge({\n  extend: { theme: { radius: [\"control\", \"surface\", \"overlay\"], shadow: [\"overlay\"] } },\n});\n\nexport function cn(...inputs: ClassValue[]) {\n  return twMerge(clsx(inputs));\n}\n"},{"path":"ui/site-footer.tsx","type":"registry:ui","target":"components/ui/site-footer.tsx","content":"import type { ReactNode } from \"react\";\nimport { cn } from \"./lib/cn\";\nimport \"./site-footer.css\";\n\nexport type FooterColumn = { title: string; links: readonly { label: string; href: string }[] };\nexport type FooterSocial = { label: string; href: string; icon: ReactNode };\n\n/** The bottom of a marketing site: who you are, where things are, and the small print. */\nexport function SiteFooter({\n  brand,\n  description,\n  columns,\n  social,\n  legal,\n  end,\n  className,\n}: {\n  brand: ReactNode;\n  description?: string;\n  columns: readonly FooterColumn[];\n  social?: readonly FooterSocial[];\n  /** Copyright and policy links. */\n  legal?: ReactNode;\n  /** Something at the end of the bottom row, such as a theme switch or a language select. */\n  end?: ReactNode;\n  className?: string;\n}) {\n  return (\n    <footer data-slot=\"site-footer\" className={cn(\"border-t border-border\", className)}>\n      <div className=\"mx-auto grid w-full max-w-6xl gap-10 px-4 py-10 sm:px-6 lg:grid-cols-[minmax(0,18rem)_minmax(0,1fr)]\">\n        <div className=\"grid content-start gap-3\">\n          {brand}\n          {description && <p className=\"max-w-xs text-sm text-muted-foreground\">{description}</p>}\n          {social && social.length > 0 && (\n            <ul aria-label=\"Social links\" className=\"mt-1 flex list-none flex-wrap gap-1 p-0\">\n              {social.map((item) => (\n                <li key={item.label}>\n                  <a href={item.href} aria-label={item.label} data-slot=\"footer-social\">\n                    {item.icon}\n                  </a>\n                </li>\n              ))}\n            </ul>\n          )}\n        </div>\n        <nav aria-label=\"Footer\" className=\"grid grid-cols-2 gap-8 sm:grid-cols-3 lg:grid-cols-4\">\n          {columns.map((column) => (\n            <div key={column.title} className=\"grid content-start gap-3\">\n              <h2 className=\"text-xs font-medium text-foreground\">{column.title}</h2>\n              <ul className=\"m-0 grid list-none gap-2 p-0\">\n                {column.links.map((link) => (\n                  <li key={link.href + link.label}>\n                    <a href={link.href} data-slot=\"footer-link\">\n                      {link.label}\n                    </a>\n                  </li>\n                ))}\n              </ul>\n            </div>\n          ))}\n        </nav>\n      </div>\n      {(legal || end) && (\n        <div className=\"border-t border-border\">\n          <div className=\"mx-auto flex w-full max-w-6xl flex-wrap items-center justify-between gap-3 px-4 py-4 text-xs text-muted-foreground sm:px-6\">\n            <div className=\"flex flex-wrap items-center gap-x-4 gap-y-1\">{legal}</div>\n            {end}\n          </div>\n        </div>\n      )}\n    </footer>\n  );\n}\n"},{"path":"ui/site-footer.css","type":"registry:file","target":"components/ui/site-footer.css","content":"/* site-footer.tsx's styles; it imports this file. Edit freely. */\n@layer theme, base, components, utilities;\n\n@layer components {\n  [data-slot=\"footer-link\"] {\n    font-size: 0.875rem;\n    color: var(--muted-foreground);\n    text-decoration: none;\n    border-radius: 3px;\n    outline: none;\n    transition: color var(--duration-fast) var(--ease-out);\n  }\n  [data-slot=\"footer-link\"]:hover {\n    color: var(--foreground);\n    text-decoration: underline;\n    text-underline-offset: 4px;\n  }\n  [data-slot=\"footer-link\"]:focus-visible {\n    outline: 2px solid var(--ring);\n    outline-offset: 2px;\n  }\n  [data-slot=\"footer-social\"] {\n    display: grid;\n    place-items: center;\n    width: 2rem;\n    height: 2rem;\n    border-radius: var(--radius-control);\n    color: var(--muted-foreground);\n    outline: none;\n    transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);\n  }\n  [data-slot=\"footer-social\"]:hover {\n    background: var(--muted);\n    color: var(--foreground);\n  }\n  [data-slot=\"footer-social\"]:focus-visible {\n    outline: 2px solid var(--ring);\n  }\n  [data-slot=\"footer-social\"] svg {\n    width: 1.0625rem;\n    height: 1.0625rem;\n  }\n}\n"}],"categories":["free-marketing"],"meta":{"tier":"free","license":"MIT","family":"page-chrome","docs":"/docs/components/site-footer"}}