{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "site-footer",
  "title": "Site Footer",
  "description": "A page footer with a brand, link columns in a navigation landmark, a copyright line and optional social icon links.",
  "registryDependencies": [
    "@corsair-ui/utils",
    "@corsair-ui/button",
    "@corsair-ui/separator"
  ],
  "files": [
    {
      "path": "registry/default/components/blocks/site-footer.tsx",
      "content": "import type { ComponentProps, ReactNode } from \"react\";\n\nimport { cn } from \"@/registry/default/lib/utils\";\nimport { Button } from \"@/registry/default/ui/button\";\nimport { Separator } from \"@/registry/default/ui/separator\";\n\ninterface SiteFooterLink {\n  /** React key; falls back to the index. */\n  id?: string;\n  label: ReactNode;\n  href: string;\n}\n\ninterface SiteFooterColumn {\n  /** React key; falls back to the index. */\n  id?: string;\n  /** Column heading, rendered as an `<h2>`. */\n  title: ReactNode;\n  links: SiteFooterLink[];\n}\n\ninterface SiteFooterSocialLink {\n  /** React key; falls back to the index. */\n  id?: string;\n  /** Accessible name of the icon link, such as \"Follow us on Mastodon\". */\n  label: string;\n  href: string;\n  /** Decorative icon; it is hidden from assistive tech. */\n  icon: ReactNode;\n}\n\nconst defaultColumns: SiteFooterColumn[] = [\n  {\n    id: \"product\",\n    title: \"Product\",\n    links: [\n      { label: \"Features\", href: \"#features\" },\n      { label: \"Pricing\", href: \"#pricing\" },\n      { label: \"Integrations\", href: \"#integrations\" },\n      { label: \"Changelog\", href: \"#changelog\" },\n    ],\n  },\n  {\n    id: \"company\",\n    title: \"Company\",\n    links: [\n      { label: \"About\", href: \"#about\" },\n      { label: \"Careers\", href: \"#careers\" },\n      { label: \"Blog\", href: \"#blog\" },\n      { label: \"Contact\", href: \"#contact\" },\n    ],\n  },\n  {\n    id: \"resources\",\n    title: \"Resources\",\n    links: [\n      { label: \"Documentation\", href: \"#docs\" },\n      { label: \"Guides\", href: \"#guides\" },\n      { label: \"Help center\", href: \"#help\" },\n    ],\n  },\n];\n\nconst linkClassName = cn(\n  \"text-muted-foreground hover:text-foreground rounded-md text-sm outline-none\",\n  \"transition-colors motion-reduce:transition-none\",\n  \"focus-visible:ring-ring/50 focus-visible:ring-[3px]\"\n);\n\ninterface SiteFooterProps extends ComponentProps<\"footer\"> {\n  /** Logo or wordmark at the top left. */\n  brand?: ReactNode;\n  /** A sentence under the brand. Pass `null` to hide it. */\n  description?: ReactNode;\n  /** Link columns, all inside one navigation landmark. */\n  columns?: SiteFooterColumn[];\n  /** Icon links in the bottom row. Each needs a `label`, since the icon has no text. */\n  social?: SiteFooterSocialLink[];\n  /** Text on the left of the bottom row, such as the copyright. */\n  bottom?: ReactNode;\n  /** Accessible name of the navigation landmark around the columns. */\n  navLabel?: string;\n}\n\n/**\n * The footer at the end of a page: brand and a short description on the\n * left, link columns on the right, then a separator and a bottom row with\n * the copyright and optional social icon links (stacked on small screens).\n * It is a `<footer>` (the contentinfo landmark when it is not inside another\n * section). The columns share one `<nav>` named by `navLabel`; each column\n * title is an `<h2>` and its links a list. Social links are named by their\n * `label` and their icons are hidden from assistive tech. Nothing is\n * computed at runtime, so pass the year in `bottom` if you want one.\n *\n * @example\n * <SiteFooter\n *   brand={<a href=\"/\">Acme</a>}\n *   columns={[{ title: \"Product\", links: [{ label: \"Pricing\", href: \"/pricing\" }] }]}\n *   social={[{ label: \"RSS feed\", href: \"/rss.xml\", icon: <RssIcon /> }]}\n *   bottom=\"© 2025 Acme Inc.\"\n * />\n */\nfunction SiteFooter({\n  brand = <span className=\"font-semibold\">Acme</span>,\n  description = \"Plan, build and ship your work in one place, with tools the whole team can use.\",\n  columns = defaultColumns,\n  social = [],\n  bottom = \"© Acme Inc. All rights reserved.\",\n  navLabel = \"Footer\",\n  className,\n  ...props\n}: SiteFooterProps) {\n  return (\n    <footer data-slot=\"site-footer\" className={cn(\"border-t py-16 sm:py-24\", className)} {...props}>\n      <div data-slot=\"site-footer-container\" className=\"mx-auto w-full max-w-6xl px-4 sm:px-6\">\n        <div data-slot=\"site-footer-main\" className=\"grid gap-12 lg:grid-cols-[2fr_3fr]\">\n          <div data-slot=\"site-footer-intro\" className=\"min-w-0\">\n            <div data-slot=\"site-footer-brand\">{brand}</div>\n            {description ? (\n              <p\n                data-slot=\"site-footer-description\"\n                className=\"text-muted-foreground mt-4 max-w-xs text-sm text-pretty\"\n              >\n                {description}\n              </p>\n            ) : null}\n          </div>\n          {columns.length > 0 ? (\n            <nav\n              data-slot=\"site-footer-nav\"\n              aria-label={navLabel}\n              className=\"grid grid-cols-2 gap-8 sm:grid-cols-3\"\n            >\n              {columns.map((column, columnIndex) => (\n                <div\n                  key={column.id ?? columnIndex}\n                  data-slot=\"site-footer-column\"\n                  className=\"min-w-0\"\n                >\n                  <h2 data-slot=\"site-footer-column-title\" className=\"text-sm font-medium\">\n                    {column.title}\n                  </h2>\n                  <ul data-slot=\"site-footer-links\" className=\"mt-4 flex flex-col gap-3\">\n                    {column.links.map((link, linkIndex) => (\n                      <li key={link.id ?? linkIndex}>\n                        <a data-slot=\"site-footer-link\" href={link.href} className={linkClassName}>\n                          {link.label}\n                        </a>\n                      </li>\n                    ))}\n                  </ul>\n                </div>\n              ))}\n            </nav>\n          ) : null}\n        </div>\n        <Separator className=\"my-8\" />\n        <div\n          data-slot=\"site-footer-bottom\"\n          className=\"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between\"\n        >\n          {bottom ? (\n            <div data-slot=\"site-footer-legal\" className=\"text-muted-foreground text-sm\">\n              {bottom}\n            </div>\n          ) : null}\n          {social.length > 0 ? (\n            <ul data-slot=\"site-footer-social\" className=\"-mx-2 flex flex-wrap items-center gap-1\">\n              {social.map((item, index) => (\n                <li key={item.id ?? index}>\n                  <Button asChild variant=\"ghost\" size=\"icon-sm\">\n                    <a data-slot=\"site-footer-social-link\" href={item.href} aria-label={item.label}>\n                      <span aria-hidden=\"true\" className=\"contents\">\n                        {item.icon}\n                      </span>\n                    </a>\n                  </Button>\n                </li>\n              ))}\n            </ul>\n          ) : null}\n        </div>\n      </div>\n    </footer>\n  );\n}\n\nexport {\n  SiteFooter,\n  type SiteFooterColumn,\n  type SiteFooterLink,\n  type SiteFooterProps,\n  type SiteFooterSocialLink,\n};\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:block"
}