{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "family-footer",
  "title": "FamilyFooter",
  "description": "The foot of a family's site: the `FamilyBar`'s links, in the same order, in a quiet row that wraps, with the site being shown marked the same way, and the site's own extras (`children`) after them.",
  "registryDependencies": [
    "@ouro/family-bar",
    "@ouro/lib-class-name-check",
    "@ouro/lib-cn",
    "@ouro/lib-env",
    "@ouro/lib-router-link",
    "@ouro/lib-use-dev-messages"
  ],
  "files": [
    {
      "path": "registry/ouro/components/ouro/family-bar/family-footer.tsx",
      "content": "\"use client\";\n\nimport type { JSX, ReactNode, Ref } from \"react\";\nimport { useAppearanceClassNameCheck } from \"@/registry/ouro/lib/ouro/class-name-check\";\nimport { cn } from \"@/registry/ouro/lib/ouro/cn\";\nimport { RouterLink } from \"@/registry/ouro/lib/ouro/router-link\";\nimport { useDevWarnings } from \"@/registry/ouro/lib/ouro/use-dev-messages\";\nimport type { FamilyLink } from \"@/registry/ouro/components/ouro/family-bar/family-bar\";\nimport { familyExtrasClass, familyFooterClass, familyFooterLinkClass, familyFooterListClass, familyLinkClass, familyWarnings } from \"@/registry/ouro/components/ouro/family-bar/family-bar-styles\";\n\n/** Props for {@link FamilyFooter}. */\nexport interface FamilyFooterProps {\n  /** The family's sites, in order: the list the site's `FamilyBar` takes. */\n  links: readonly FamilyLink[];\n  /** The `id` of the site being shown, marked as in the `FamilyBar`: `aria-current=\"true\"`, the text colour and a primary underline. */\n  current?: string | undefined;\n  /** Names the footer's navigation for screen readers, apart from the bar's. It is not shown. @default \"All sites\" */\n  label?: string | undefined;\n  /**\n   * The site's own extras, after the family's links: its Privacy and Terms links, a line about who makes it. They fill\n   * the rest of the row, or a row of their own, and sit at its end (at its start on a phone) until you spread them:\n   * `me-auto` on the first.\n   */\n  children?: ReactNode;\n  /** Layout only: margins, grid placement (`mt-auto`). Appearance classes warn in development. */\n  className?: string | undefined;\n  ref?: Ref<HTMLDivElement> | undefined;\n\n  /** Not a prop. FamilyFooter takes `links`: `<FamilyFooter links={[{ id: \"docs\", label: \"Docs\", href: \"/\" }]} />`. */\n  items?: { 'Use <FamilyFooter links={[{ id: \"docs\", label: \"Docs\", href: \"/\" }]} />': never };\n  /** Not a prop. FamilyFooter marks a site by its id, not by a path: `<FamilyFooter current=\"docs\">`. */\n  currentPath?: { 'Use <FamilyFooter current=\"docs\">, the id of the site shown': never };\n}\n\n/**\n * The foot of a family's site: the `FamilyBar`'s links, in the same order, in a quiet row that wraps, with the site\n * being shown marked the same way, and the site's own extras (`children`) after them. The family's links are a\n * labelled `<nav>` of plain links, whole in the server HTML.\n *\n * Use `FamilyBar` instead for the strip above the site's header, and `Navbar` for a site's own pages.\n *\n * @group Navigation\n * @see https://ui.ouroboros.bot/docs/family-footer\n *\n * @example\n * <FamilyFooter links={sites} current=\"docs\">\n *   <Link href=\"/privacy\" tone=\"secondary\">Privacy</Link>\n *   <Link href=\"/terms\" tone=\"secondary\">Terms</Link>\n * </FamilyFooter>\n */\nexport function FamilyFooter(props: FamilyFooterProps): JSX.Element {\n  const {\n    links,\n    current,\n    label = \"All sites\",\n    children,\n    className,\n    ref,\n    // Guard props (hint types), dropped here so they never reach the DOM.\n    items,\n    currentPath,\n  } = props;\n  useAppearanceClassNameCheck(\n    \"FamilyFooter\",\n    className,\n    process.env.NODE_ENV !== \"production\"\n      ? (token: string) => `remove \"${token}\"; FamilyFooter sets its own look`\n      : // Stryker disable next-line StringLiteral: production only; the check never runs there.\n        /* istanbul ignore next @preserve -- production only */ \"\",\n  );\n  useDevWarnings(\n    \"FamilyFooter\",\n    process.env.NODE_ENV !== \"production\"\n      ? () => [\n          ...familyWarnings(\"FamilyFooter\", links, current),\n          items !== undefined && [\"items is not a prop\", '<FamilyFooter links={[{ id: \"docs\", label: \"Docs\", href: \"/\" }]} />'],\n          currentPath !== undefined && [\"currentPath is not a prop; current takes the id of the site being shown\", '<FamilyFooter current=\"docs\">'],\n        ]\n      : /* istanbul ignore next @preserve -- production only */ undefined,\n  );\n\n  return (\n    <div ref={ref} data-ouro=\"family-footer\" className={cn(familyFooterClass, className)}>\n      <nav aria-label={label} className=\"min-w-0 max-sm:w-full\">\n        <ul className={familyFooterListClass}>\n          {links.map((link, index) => (\n            <li key={index} className=\"flex\">\n              <RouterLink\n                href={link.href}\n                aria-current={link.id === current ? \"true\" : undefined}\n                data-ouro-control=\"family-footer\"\n                data-ouro-part=\"link\"\n                className={cn(familyLinkClass, familyFooterLinkClass)}\n              >\n                {link.label}\n              </RouterLink>\n            </li>\n          ))}\n        </ul>\n      </nav>\n      {children !== undefined && (\n        <div data-ouro-family-extras=\"\" className={familyExtrasClass}>\n          {children}\n        </div>\n      )}\n    </div>\n  );\n}\n",
      "type": "registry:ui",
      "target": "@components/ouro/family-bar/family-footer.tsx"
    }
  ],
  "docs": "The foot of a family's site: the `FamilyBar`'s links, in the same order, in a quiet row that wraps, with the site being shown marked the same way, and the site's own extras (`children`) after them. Import: import { FamilyFooter } from \"@/components/ouro/family-bar/family-footer\", with @/components replaced by your components alias (aliases.components in components.json, such as ~/components). Also installed: family-bar, the helpers they import in lib/ouro. Needs ouro-base in your stylesheet: add that item once per app, from the same place as this one, if you have not. Docs: https://ui.ouroboros.bot/docs/family-footer.md Ouro UI v1.3.257.",
  "type": "registry:ui"
}