{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "signature-footer-demo",
  "title": "Signature Footer Demo",
  "description": "A worked example of Signature Footer: A complete closing section with room for the useful links first and one oversized wordmark at the end.",
  "registryDependencies": [
    "https://ui.tinkererslabs.com/r/signature-footer.json"
  ],
  "files": [
    {
      "path": "components/demos/signature-footer-demo.tsx",
      "content": "\"use client\"\n\nimport { DemoVariants } from \"@/components/demos/demo-variants\"\nimport {\n  SignatureFooter,\n  type FooterColumn,\n} from \"@/registry/default/signature-footer/signature-footer\"\n\nconst columns: FooterColumn[] = [\n  {\n    label: \"Product\",\n    links: [\n      { label: \"Pricing\", href: \"#\" },\n      { label: \"Changelog\", href: \"#\" },\n      { label: \"Dashboard\", href: \"#\" },\n    ],\n  },\n  {\n    label: \"Free tools\",\n    links: [\n      { label: \"Link shortener\", href: \"#\" },\n      { label: \"QR generator\", href: \"#\" },\n      { label: \"UTM builder\", href: \"#\" },\n    ],\n  },\n  {\n    label: \"Company\",\n    links: [\n      { label: \"Docs\", href: \"#\", external: true },\n      { label: \"Brand\", href: \"#\" },\n      { label: \"Contact\", href: \"#\" },\n    ],\n  },\n]\n\nconst related: FooterColumn = {\n  label: \"Other products\",\n  links: [\n    { label: \"Maillayer\", href: \"#\" },\n    { label: \"Post Scheduler\", href: \"#\" },\n    { label: \"Traffic Source\", href: \"#\" },\n    { label: \"Meta Tags\", href: \"#\" },\n    { label: \"Blog CMS\", href: \"#\" },\n  ],\n}\n\nconst frame =\n  \"w-full rounded-[var(--radius)] [&_[data-slot=signature-footer-inner]]:px-6 [&_[data-slot=signature-footer-inner]]:pt-8 [&_[data-slot=signature-footer-wordmark]]:pt-4 [&_[data-slot=signature-footer-wordmark]]:text-[clamp(3rem,9vw,7rem)]\"\n\nfunction Status() {\n  return (\n    <span className=\"inline-flex items-center gap-2\">\n      <span aria-hidden=\"true\" className=\"bg-accent size-1.5 rounded-full\" />\n      All systems operational\n    </span>\n  )\n}\n\nexport function SignatureFooterDemo() {\n  return (\n    <DemoVariants\n      label=\"Footer\"\n      variants={[\n        {\n          id: \"directory\",\n          label: \"Directory\",\n          render: () => (\n            <SignatureFooter\n              className={frame}\n              heading={<strong className=\"text-xl\">Northstar</strong>}\n              description=\"Short links and file sharing with real-time analytics.\"\n              columns={columns}\n              related={related}\n              brand={<span>© 2026 Northstar</span>}\n              legal={\n                <span className=\"flex gap-5\">\n                  <a className=\"no-underline\" href=\"#\">\n                    Terms\n                  </a>\n                  <a className=\"no-underline\" href=\"#\">\n                    Privacy\n                  </a>\n                </span>\n              }\n              status={<Status />}\n              wordmark=\"northstar\"\n            />\n          ),\n        },\n        {\n          id: \"light\",\n          label: \"On a light ground\",\n          render: () => (\n            <SignatureFooter\n              className={`${frame} bg-card text-card-foreground border-border border`}\n              heading={<strong className=\"text-xl\">Northstar</strong>}\n              description=\"Every shade is mixed from the text colour, so nothing has to be restyled.\"\n              columns={columns.slice(0, 2)}\n              related={related}\n              brand={<span>© 2026 Northstar</span>}\n              status={<Status />}\n              wordmark=\"northstar\"\n            />\n          ),\n        },\n        {\n          id: \"statement\",\n          label: \"Statement\",\n          render: () => (\n            <SignatureFooter\n              className={frame}\n              eyebrow=\"One last useful thought\"\n              heading=\"Make the ending memorable.\"\n              description=\"Keep the links practical. Let the wordmark do the rest.\"\n              brand={<strong>Northstar</strong>}\n              meta={<span>Made with care.</span>}\n              wordmark=\"Northstar\"\n            />\n          ),\n        },\n      ]}\n    />\n  )\n}\n",
      "type": "registry:example"
    },
    {
      "path": "components/demos/demo-variants.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\n\nexport type DemoVariant = {\n  id: string\n  label: string\n  render: () => React.ReactNode\n}\n\nexport function DemoVariants({\n  variants,\n  label = \"Demo variant\",\n}: {\n  variants: [DemoVariant, ...DemoVariant[]]\n  label?: string\n}) {\n  const [activeId, setActiveId] = React.useState(variants[0].id)\n  const active =\n    variants.find((variant) => variant.id === activeId) ?? variants[0]\n\n  return (\n    <div className=\"grid w-full justify-items-center gap-6\">\n      {/* Centres whatever the variant renders. Without this a demo that caps\n          its own width sits against the left edge while the switch below it\n          is centred, which reads as a mistake. */}\n      <div className=\"flex w-full justify-center\">{active.render()}</div>\n\n      <div\n        role=\"group\"\n        aria-label={label}\n        className=\"border-border bg-background/70 inline-flex flex-wrap justify-center gap-1 rounded-full border p-1\"\n      >\n        {variants.map((variant) => {\n          const isActive = variant.id === active.id\n\n          return (\n            <button\n              key={variant.id}\n              type=\"button\"\n              aria-pressed={isActive}\n              className={\n                isActive\n                  ? \"bg-foreground text-background rounded-full px-3 py-1.5 text-xs font-semibold\"\n                  : \"text-muted-foreground hover:text-foreground rounded-full px-3 py-1.5 text-xs font-semibold\"\n              }\n              onClick={() => setActiveId(variant.id)}\n            >\n              {variant.label}\n            </button>\n          )\n        })}\n      </div>\n    </div>\n  )\n}\n",
      "type": "registry:example"
    }
  ],
  "type": "registry:example"
}