{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "footer-01",
  "title": "Footer 01",
  "description": "A structured product footer with newsletter, navigation, status, and theme controls.",
  "dependencies": [
    "lucide-react",
    "next-themes"
  ],
  "registryDependencies": [
    "button",
    "input-group",
    "separator"
  ],
  "files": [
    {
      "path": "src/registry/blocks/footer-01/footer-01.tsx",
      "content": "\"use client\";\n\nimport { ArrowRightIcon, MoonIcon, SunIcon } from \"lucide-react\";\nimport type { Route } from \"next\";\nimport Image from \"next/image\";\nimport Link from \"next/link\";\nimport { useTheme } from \"next-themes\";\nimport { type FormEvent, type ReactNode, useId } from \"react\";\nimport { Button } from \"@/components/ui/button\";\nimport {\n\tInputGroup,\n\tInputGroupAddon,\n\tInputGroupButton,\n\tInputGroupInput,\n} from \"@/components/ui/input-group\";\nimport { Separator } from \"@/components/ui/separator\";\nimport { cn } from \"@/lib/utils\";\n\nexport interface Footer01Link {\n\tlabel: string;\n\thref: string;\n}\n\nexport interface Footer01LinkGroup {\n\ttitle: string;\n\tlinks: Footer01Link[];\n}\n\nexport interface Footer01Props {\n\tlogo?: ReactNode;\n\tbrandName?: string;\n\tbrandHref?: string;\n\theadline?: string;\n\tdescription?: string;\n\tinputPlaceholder?: string;\n\tbuttonText?: string;\n\tcopyright?: string;\n\tlinkGroups?: Footer01LinkGroup[];\n\tlegalLinks?: Footer01Link[];\n\tnewsletterAction?: string;\n}\n\nconst DEFAULT_LINK_GROUPS: Footer01LinkGroup[] = [\n\t{\n\t\ttitle: \"Product\",\n\t\tlinks: [\n\t\t\t{ label: \"Overview\", href: \"#\" },\n\t\t\t{ label: \"Pricing\", href: \"#\" },\n\t\t\t{ label: \"Dashboard\", href: \"#\" },\n\t\t],\n\t},\n\t{\n\t\ttitle: \"Resources\",\n\t\tlinks: [\n\t\t\t{ label: \"Blog\", href: \"#\" },\n\t\t\t{ label: \"Changelog\", href: \"#\" },\n\t\t],\n\t},\n\t{\n\t\ttitle: \"Legal\",\n\t\tlinks: [\n\t\t\t{ label: \"Privacy\", href: \"#\" },\n\t\t\t{ label: \"Terms\", href: \"#\" },\n\t\t\t{ label: \"Fair use\", href: \"#\" },\n\t\t],\n\t},\n];\n\nconst DEFAULT_LEGAL_LINKS =\n\tDEFAULT_LINK_GROUPS.find((group) => group.title === \"Legal\")?.links ?? [];\n\nfunction GridTick({ className }: { className?: string }) {\n\treturn (\n\t\t<span\n\t\t\taria-hidden=\"true\"\n\t\t\tclassName={cn(\n\t\t\t\t\"pointer-events-none absolute z-10 size-4 text-border\",\n\t\t\t\t\"before:absolute before:top-1/2 before:left-0 before:h-px before:w-full before:-translate-y-1/2 before:bg-current\",\n\t\t\t\t\"after:absolute after:top-0 after:left-1/2 after:h-full after:w-px after:-translate-x-1/2 after:bg-current\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t/>\n\t);\n}\n\nfunction FooterLink({\n\tlink,\n\tclassName,\n}: {\n\tlink: Footer01Link;\n\tclassName?: string;\n}) {\n\tconst external = link.href.startsWith(\"http\");\n\n\treturn (\n\t\t<Link\n\t\t\tclassName={className}\n\t\t\thref={link.href as Route}\n\t\t\trel={external ? \"noreferrer\" : undefined}\n\t\t\ttarget={external ? \"_blank\" : undefined}\n\t\t>\n\t\t\t{link.label}\n\t\t</Link>\n\t);\n}\n\nfunction FooterLinkList({ links }: { links: Footer01Link[] }) {\n\treturn (\n\t\t<ul className=\"flex flex-col gap-3.5\">\n\t\t\t{links.map((link) => (\n\t\t\t\t<li key={`${link.label}-${link.href}`}>\n\t\t\t\t\t<FooterLink\n\t\t\t\t\t\tclassName=\"block py-0.5 font-medium text-muted-foreground text-sm transition-colors duration-150 ease-[cubic-bezier(0.23,1,0.32,1)] hover:text-foreground\"\n\t\t\t\t\t\tlink={link}\n\t\t\t\t\t/>\n\t\t\t\t</li>\n\t\t\t))}\n\t\t</ul>\n\t);\n}\n\nfunction FooterLinkColumn({ group }: { group: Footer01LinkGroup }) {\n\treturn (\n\t\t<nav aria-label={group.title} className=\"flex flex-col gap-4 pl-6\">\n\t\t\t<p className=\"font-medium text-muted-foreground text-xs uppercase tracking-wide\">\n\t\t\t\t{group.title}\n\t\t\t</p>\n\t\t\t<FooterLinkList links={group.links} />\n\t\t</nav>\n\t);\n}\n\nfunction NewsletterForm({\n\tplaceholder,\n\tbuttonText,\n\taction,\n}: {\n\tplaceholder: string;\n\tbuttonText: string;\n\taction?: string;\n}) {\n\tconst inputId = useId();\n\n\tfunction handleSubmit(event: FormEvent<HTMLFormElement>) {\n\t\tif (!action) event.preventDefault();\n\t}\n\n\treturn (\n\t\t<form\n\t\t\taction={action}\n\t\t\tclassName=\"w-full max-w-md\"\n\t\t\tmethod={action ? \"post\" : undefined}\n\t\t\tonSubmit={handleSubmit}\n\t\t>\n\t\t\t<label className=\"sr-only\" htmlFor={inputId}>\n\t\t\t\tEmail address\n\t\t\t</label>\n\t\t\t<InputGroup className=\"h-12\">\n\t\t\t\t<InputGroupInput\n\t\t\t\t\tautoComplete=\"email\"\n\t\t\t\t\tclassName=\"h-full px-4\"\n\t\t\t\t\tid={inputId}\n\t\t\t\t\tname=\"email\"\n\t\t\t\t\tplaceholder={placeholder}\n\t\t\t\t\trequired\n\t\t\t\t\tspellCheck={false}\n\t\t\t\t\ttype=\"email\"\n\t\t\t\t/>\n\t\t\t\t<InputGroupAddon align=\"inline-end\">\n\t\t\t\t\t<InputGroupButton\n\t\t\t\t\t\tclassName=\"min-w-28 touch-manipulation transition-transform duration-160 ease-[cubic-bezier(0.23,1,0.32,1)] active:translate-y-0 active:scale-[0.98]\"\n\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\ttype=\"submit\"\n\t\t\t\t\t\tvariant=\"default\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{buttonText}\n\t\t\t\t\t\t<ArrowRightIcon aria-hidden=\"true\" data-icon=\"inline-end\" />\n\t\t\t\t\t</InputGroupButton>\n\t\t\t\t</InputGroupAddon>\n\t\t\t</InputGroup>\n\t\t</form>\n\t);\n}\n\nfunction ThemeToggle() {\n\tconst { resolvedTheme, setTheme } = useTheme();\n\n\treturn (\n\t\t<Button\n\t\t\taria-label=\"Toggle theme\"\n\t\t\tclassName=\"relative touch-manipulation transition-transform duration-160 ease-[cubic-bezier(0.23,1,0.32,1)] active:scale-[0.97]\"\n\t\t\tonClick={() => setTheme(resolvedTheme === \"dark\" ? \"light\" : \"dark\")}\n\t\t\tsize=\"icon-sm\"\n\t\t\ttype=\"button\"\n\t\t\tvariant=\"ghost\"\n\t\t>\n\t\t\t<SunIcon\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\tclassName=\"dark:hidden\"\n\t\t\t\tdata-icon=\"inline-start\"\n\t\t\t/>\n\t\t\t<MoonIcon\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\tclassName=\"hidden dark:block\"\n\t\t\t\tdata-icon=\"inline-start\"\n\t\t\t/>\n\t\t</Button>\n\t);\n}\n\nfunction Wordmark({\n\tlogo,\n\tbrandName,\n\tbrandHref,\n}: {\n\tlogo?: ReactNode;\n\tbrandName: string;\n\tbrandHref: string;\n}) {\n\treturn (\n\t\t<Link\n\t\t\taria-label={`${brandName} home`}\n\t\t\tclassName=\"inline-flex w-fit items-center\"\n\t\t\thref={brandHref as Route}\n\t\t>\n\t\t\t{logo ?? (\n\t\t\t\t<Image\n\t\t\t\t\talt=\"\"\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\tclassName=\"h-9 w-auto\"\n\t\t\t\t\theight={166}\n\t\t\t\t\tsrc=\"https://cdn.tentui.com/tkit-logo.svg\"\n\t\t\t\t\tunoptimized\n\t\t\t\t\twidth={455}\n\t\t\t\t/>\n\t\t\t)}\n\t\t</Link>\n\t);\n}\n\nexport default function Footer01({\n\tlogo,\n\tbrandName = \"Tkit.ai\",\n\tbrandHref = \"#\",\n\theadline = \"The toolkit for turning your website visitors into clients.\",\n\tdescription = \"Support tickets, infrastructure, and workflows to ship features fast.\",\n\tinputPlaceholder = \"Enter your email…\",\n\tbuttonText = \"Subscribe\",\n\tcopyright = `© ${new Date().getUTCFullYear()} All rights reserved.`,\n\tlinkGroups = DEFAULT_LINK_GROUPS,\n\tlegalLinks = DEFAULT_LEGAL_LINKS,\n\tnewsletterAction,\n}: Footer01Props) {\n\tconst [primaryGroup, ...secondaryGroups] = linkGroups;\n\n\treturn (\n\t\t<footer className=\"relative w-full overflow-hidden p-2 font-sans\">\n\t\t\t<div className=\"relative mx-auto w-full max-w-6xl border bg-background text-foreground\">\n\t\t\t\t<GridTick className=\"-top-2 -left-2\" />\n\t\t\t\t<GridTick className=\"-top-2 -right-2\" />\n\t\t\t\t<GridTick className=\"-bottom-2 -left-2\" />\n\t\t\t\t<GridTick className=\"-right-2 -bottom-2\" />\n\n\t\t\t\t<div className=\"grid grid-cols-1 overflow-hidden lg:grid-cols-14\">\n\t\t\t\t\t<div className=\"relative border-b lg:col-span-8 lg:border-r lg:border-b-0\">\n\t\t\t\t\t\t<div className=\"grid h-full grid-cols-1 md:grid-cols-[minmax(0,1fr)_12rem]\">\n\t\t\t\t\t\t\t<div className=\"flex min-h-[300px] min-w-0 flex-col justify-center gap-7 p-5 sm:min-h-[340px] sm:p-8 lg:p-12\">\n\t\t\t\t\t\t\t\t<div className=\"flex flex-col gap-4\">\n\t\t\t\t\t\t\t\t\t<h2 className=\"max-w-lg text-balance font-light text-2xl leading-[1.15] tracking-tight sm:text-3xl lg:text-4xl\">\n\t\t\t\t\t\t\t\t\t\t{headline}\n\t\t\t\t\t\t\t\t\t</h2>\n\t\t\t\t\t\t\t\t\t<p className=\"max-w-md text-muted-foreground text-sm leading-relaxed\">\n\t\t\t\t\t\t\t\t\t\t{description}\n\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t<NewsletterForm\n\t\t\t\t\t\t\t\t\taction={newsletterAction}\n\t\t\t\t\t\t\t\t\tbuttonText={buttonText}\n\t\t\t\t\t\t\t\t\tplaceholder={inputPlaceholder}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t{primaryGroup ? (\n\t\t\t\t\t\t\t\t<div className=\"border-t px-5 py-8 sm:px-8 md:border-t-0 md:border-l md:px-6 md:py-12\">\n\t\t\t\t\t\t\t\t\t<FooterLinkColumn group={primaryGroup} />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<GridTick className=\"-top-2 -right-2 hidden lg:block\" />\n\t\t\t\t\t\t<GridTick className=\"-right-2 -bottom-2 hidden lg:block\" />\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className=\"relative px-5 py-8 sm:px-8 sm:py-12 lg:col-span-6\">\n\t\t\t\t\t\t<div className=\"grid h-full grid-cols-2 gap-7 sm:gap-4\">\n\t\t\t\t\t\t\t{secondaryGroups.map((group) => (\n\t\t\t\t\t\t\t\t<FooterLinkColumn group={group} key={group.title} />\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\n\t\t\t\t<div className=\"flex flex-col gap-7 border-t px-5 py-7 sm:px-8 sm:py-8 lg:flex-row lg:items-center lg:justify-between lg:gap-8 lg:px-12 lg:py-10\">\n\t\t\t\t\t<Wordmark brandHref={brandHref} brandName={brandName} logo={logo} />\n\n\t\t\t\t\t<div className=\"flex flex-1 flex-col gap-5 md:flex-row md:items-center md:gap-8 lg:justify-end\">\n\t\t\t\t\t\t<div className=\"flex flex-col gap-4 sm:flex-row sm:items-center\">\n\t\t\t\t\t\t\t<p className=\"max-w-[220px] shrink-0 text-muted-foreground text-xs\">\n\t\t\t\t\t\t\t\t{copyright}\n\t\t\t\t\t\t\t</p>\n\n\t\t\t\t\t\t\t{legalLinks.length > 0 ? (\n\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t<Separator\n\t\t\t\t\t\t\t\t\t\tclassName=\"hidden h-4 sm:block\"\n\t\t\t\t\t\t\t\t\t\torientation=\"vertical\"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<nav aria-label=\"Legal\">\n\t\t\t\t\t\t\t\t\t\t<ul className=\"flex flex-wrap items-center gap-4\">\n\t\t\t\t\t\t\t\t\t\t\t{legalLinks.map((link) => (\n\t\t\t\t\t\t\t\t\t\t\t\t<li key={`${link.label}-${link.href}`}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<FooterLink\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"font-medium text-muted-foreground text-xs transition-colors duration-150 ease-[cubic-bezier(0.23,1,0.32,1)] hover:text-foreground\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlink={link}\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t\t</nav>\n\t\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<ThemeToggle />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</footer>\n\t);\n}\n",
      "type": "registry:component",
      "target": "@components/footer-01.tsx"
    }
  ],
  "meta": {
    "createdAt": "2026-07-21",
    "iframeHeight": 860,
    "previewClassName": "flex min-h-svh items-end"
  },
  "categories": [
    "footer"
  ],
  "type": "registry:block"
}