{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "footer-block",
  "type": "registry:block",
  "title": "Footer Block",
  "description": "A Footer Block component for displaying a footer section.",
  "files": [
    {
      "path": "src/registry/blocks/footer-block.tsx",
      "type": "registry:block",
      "content": "import type { ComponentProps } from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\nexport type FooterLink = { label: string; href: string };\nexport type FooterColumn = { title: string; links: FooterLink[] };\n\nexport type FooterBlockProps = {\n  brand?: string;\n  statement?: string;\n  address?: string;\n  columns?: FooterColumn[];\n  legalLinks?: FooterLink[];\n  year?: number;\n} & ComponentProps<\"footer\">;\n\nconst DEFAULT_COLUMNS: FooterColumn[] = [\n  {\n    title: \"Product\",\n    links: [\n      { label: \"Notebooks\", href: \"#\" },\n      { label: \"Interview recorder\", href: \"#\" },\n      { label: \"Tagging\", href: \"#\" },\n      { label: \"Pricing\", href: \"#\" },\n      { label: \"Changelog\", href: \"#\" },\n    ],\n  },\n  {\n    title: \"Resources\",\n    links: [\n      { label: \"Field guide\", href: \"#\" },\n      { label: \"Templates\", href: \"#\" },\n      { label: \"API reference\", href: \"#\" },\n      { label: \"Status\", href: \"#\" },\n    ],\n  },\n  {\n    title: \"Company\",\n    links: [\n      { label: \"About\", href: \"#\" },\n      { label: \"Careers — 3 open\", href: \"#\" },\n      { label: \"Press kit\", href: \"#\" },\n      { label: \"Contact\", href: \"#\" },\n    ],\n  },\n];\n\nconst DEFAULT_LEGAL: FooterLink[] = [\n  { label: \"Privacy\", href: \"#\" },\n  { label: \"Terms\", href: \"#\" },\n  { label: \"DPA\", href: \"#\" },\n];\n\n/**\n * Classic footer: brand statement on the left, labelled link columns on the\n * right, and a hairline bottom bar with copyright and legal links.\n */\nfunction FooterBlock({\n  brand = \"Fieldnote\",\n  statement = \"A research notebook for product teams. Record the interview, tag what matters, and find it again six months later.\",\n  address = \"Made in Lisbon and Rotterdam\",\n  columns = DEFAULT_COLUMNS,\n  legalLinks = DEFAULT_LEGAL,\n  year = 2026,\n  className,\n  ...props\n}: FooterBlockProps) {\n  return (\n    <footer\n      data-slot=\"footer-block\"\n      className={cn(\"w-full border-t bg-background text-foreground\", className)}\n      {...props}\n    >\n      <div className=\"mx-auto max-w-6xl px-6 pt-16 md:pt-20\">\n        <div className=\"grid grid-cols-1 gap-12 md:grid-cols-12\">\n          <div className=\"md:col-span-5\">\n            <h2 className=\"flex items-center gap-2 text-lg font-semibold tracking-tight\">\n              <span aria-hidden className=\"size-2.5 bg-primary\" />\n              {brand}\n            </h2>\n            <p className=\"mt-4 max-w-sm text-sm leading-relaxed text-muted-foreground\">\n              {statement}\n            </p>\n            <p className=\"mt-6 font-mono text-xs uppercase tracking-wider text-muted-foreground\">\n              {address}\n            </p>\n          </div>\n\n          <div className=\"grid grid-cols-2 gap-10 sm:grid-cols-3 md:col-span-7\">\n            {columns.map((column) => (\n              <nav key={column.title} aria-label={column.title}>\n                <p className=\"font-mono text-xs uppercase tracking-wider text-muted-foreground\">\n                  {column.title}\n                </p>\n                <ul className=\"mt-4 space-y-2.5 text-sm\">\n                  {column.links.map((link) => (\n                    <li key={link.label}>\n                      <a\n                        href={link.href}\n                        className=\"underline-offset-4 outline-none hover:underline focus-visible:underline focus-visible:ring-2 focus-visible:ring-ring\"\n                      >\n                        {link.label}\n                      </a>\n                    </li>\n                  ))}\n                </ul>\n              </nav>\n            ))}\n          </div>\n        </div>\n\n        <div className=\"mt-16 flex flex-col gap-4 border-t py-6 text-xs text-muted-foreground sm:flex-row sm:items-center sm:justify-between\">\n          <p className=\"tabular-nums\">\n            © {year} {brand}, Inc. All rights reserved.\n          </p>\n          <nav aria-label=\"Legal\">\n            <ul className=\"flex gap-6\">\n              {legalLinks.map((link) => (\n                <li key={link.label}>\n                  <a\n                    href={link.href}\n                    className=\"underline-offset-4 outline-none hover:text-foreground hover:underline focus-visible:ring-2 focus-visible:ring-ring\"\n                  >\n                    {link.label}\n                  </a>\n                </li>\n              ))}\n            </ul>\n          </nav>\n        </div>\n      </div>\n    </footer>\n  );\n}\n\nexport { FooterBlock };\nexport default FooterBlock;\n"
    }
  ]
}
