# Documentation footer

Close documentation pages with version details and previous/next navigation.

Access: pro. Category: Blocks. Kind: section.

## When to use

- Use it when a page needs close documentation pages with version details and previous/next navigation.
- Choose it as the footer region when composing a page from independently reusable TidalUI sections.

## Alternatives

- Choose footer instead when a responsive semantic footer with typed navigation groups, native destination links, and optional reference, status, and legal regions is the actual interface need, rather than documentation footer.

## Setup for agents

Use React 19 and TypeScript. Initialize shadcn for your framework, then merge this exact entry into components.json:

```json
{
  "registries": {
    "@tidal-pro": {
      "url": "https://tidalui.com/r/pro/{name}.json",
      "headers": {
        "Authorization": "Bearer ${TIDALUI_TOKEN}"
      }
    }
  }
}
```

The namespace must be named **@tidal-pro** because transitive Pro dependencies use that namespace. Obtain an agent key from your active Pro account at https://tidalui.com/account. Keep TIDALUI_TOKEN in your local environment, never in components.json, client code, Git or logs.

```sh
export TIDALUI_TOKEN='your-private-agent-key'
npx shadcn@latest add @tidal-pro/waitlist-form
npx shadcn@latest add https://tidalui.com/r/tidal-button.json
```

Free command: `npx shadcn@latest add https://tidalui.com/r/<name>.json`.
Pro command: `npx shadcn@latest add @tidal-pro/<name>`.

Import the base stylesheet and every stylesheet listed on the installed item's metadata. For example:

```tsx
import "./components/ui/tidal.css";
import "./components/ui/hero-section.css";
// Place installed components inside this wrapper:
<div className="tidal-scope" data-theme="dark">...</div>
```

Omit data-theme for the default light theme. Put the attribute on the same tidal-scope element for dark mode. Every component installs the shared free tidal-base dependency. After upgrading, run `npx shadcn@latest add https://tidalui.com/r/tidal-base.json --overwrite` to receive current tokens. Review local modifications before overwriting.

Vite: Use React + TypeScript. Map @/* to ./src/* in paths and Vite resolve.alias. Import tidal.css and each component stylesheet in your application entry.

Next.js 15 App Router: Next.js App Router: import tidal.css and component CSS in app/layout.tsx. Interactive examples belong in a client component with "use client". Map @/* to ./* or ./src/* to match your project.

TypeScript 6: use paths without baseUrl:

```json
{
  "compilerOptions": {
    "paths": {
      "@/*": [
        "./src/*"
      ]
    }
  }
}
```

Pro registry requests are server/CLI-only. Use the same-origin account interface in a browser; cross-origin Authorization preflights are intentionally unsupported.


## Install Documentation footer

```sh
npx shadcn@latest add @tidal-pro/footer-documentation
```

Stylesheets: `components/ui/tidal.css`, `components/ui/footer-documentation.css`.

## Minimal example

```tsx
import"./components/ui/tidal.css";
import"./components/ui/footer-documentation.css";
import{TidalFooterDocumentation}from"./components/ui/footer-documentation";
export default()=><div className="tidal-scope"><TidalFooterDocumentation brand={"value"} contactLinks={[{id:"example",label:"Demo",href:"#"}]} documentationLinks={[{id:"example",label:"Demo",href:"#"}]} heading={"Demo"}/></div>;
```

## Structured props

- `TidalFooterDocumentation.brand: ReactNode`: Required brand value accepted by this exported component.
- `TidalFooterDocumentation.contactLinks: ReadonlyArray<TidalFooterDocumentationLink>`: Required contact links value accepted by this exported component.
- `TidalFooterDocumentation.documentationLinks: ReadonlyArray<TidalFooterDocumentationLink>`: Required documentation links value accepted by this exported component.
- `TidalFooterDocumentation.heading: ReactNode`: Required heading value accepted by this exported component.
- `TidalFooterDocumentation.adjacentLabel?: string | undefined` (default "Adjacent documentation"): Optional adjacent label value accepted by this exported component.
- `TidalFooterDocumentation.contactLabel?: string | undefined` (default "Contact navigation"): Optional contact label value accepted by this exported component.
- `TidalFooterDocumentation.description?: ReactNode`: Optional description value accepted by this exported component.
- `TidalFooterDocumentation.documentationLabel?: string | undefined` (default "Documentation navigation"): Optional documentation label value accepted by this exported component.
- `TidalFooterDocumentation.eyebrow?: ReactNode` (default "Documentation"): Optional eyebrow value accepted by this exported component.
- `TidalFooterDocumentation.headingLevel?: TidalFooterDocumentationHeadingLevel | undefined` (default "h2"): Optional heading level value accepted by this exported component.
- `TidalFooterDocumentation.legal?: ReactNode`: Optional legal value accepted by this exported component.
- `TidalFooterDocumentation.navigationHeadingLevel?: TidalFooterDocumentationSubheadingLevel | undefined`: Optional navigation heading level value accepted by this exported component.
- `TidalFooterDocumentation.next?: TidalFooterDocumentationDestination | undefined`: Optional next value accepted by this exported component.
- `TidalFooterDocumentation.nextLabel?: ReactNode` (default "Next document"): Optional next label value accepted by this exported component.
- `TidalFooterDocumentation.previous?: TidalFooterDocumentationDestination | undefined`: Optional previous value accepted by this exported component.
- `TidalFooterDocumentation.previousLabel?: ReactNode` (default "Previous document"): Optional previous label value accepted by this exported component.
- `TidalFooterDocumentation.status?: ReactNode`: Optional status value accepted by this exported component.
- `TidalFooterDocumentation.version?: ReactNode`: Optional version value accepted by this exported component.
- `TidalFooterDocumentation.versionLabel?: ReactNode` (default "Version"): Optional version label value accepted by this exported component.

## Complete usage example

[Source](https://tidalui.com/examples/footer-documentation.tsx) | [Manifest](https://tidalui.com/examples/footer-documentation.json). Install the listed additional dependencies. Consumer fixture: TypeScript pass; Vite pass. This fixture check is distinct from the actual shadcn install receipt.

```tsx
import "./components/ui/tidal.css";

import { useState, type MouseEvent } from "react";

import { TidalFooterDocumentation, type TidalFooterDocumentationDestination, type TidalFooterDocumentationLink } from "./components/ui/footer-documentation";

import "./components/ui/footer-documentation.css";



const previous: TidalFooterDocumentationDestination = {
  id: "install",
  label: "Install the package",
  description: "Package setup and local configuration.",
  href: "#preview-install",
};

const next: TidalFooterDocumentationDestination = {
  id: "accessibility",
  label: "Accessibility checklist",
  description: "Keyboard, focus, and semantic checks.",
  href: "#preview-accessibility",
};

const documentationLinks: readonly TidalFooterDocumentationLink[] = [
  { id: "components", label: "Components", href: "#preview-components" },
  { id: "guides", label: "Guides", href: "#preview-guides" },
  { id: "api", label: "API reference", href: "#preview-api" },
  { id: "changelog", label: "Changelog", href: "#preview-changelog" },
];

const contactLinks: readonly TidalFooterDocumentationLink[] = [
  { id: "support", label: "Support", href: "#preview-support" },
  { id: "contact", label: "Contact", href: "#preview-contact" },
];

function handlePreviewClick(
  label: string,
  setStatus: (status: string) => void,
) {
  return (event: MouseEvent<HTMLAnchorElement>) => {
    if (
      event.defaultPrevented ||
      event.button !== 0 ||
      event.metaKey ||
      event.ctrlKey ||
      event.shiftKey ||
      event.altKey
    ) {
      return;
    }
    event.preventDefault();
    setStatus(`${label} selected in this local preview.`);
  };
}

export function FooterDocumentationDemo() {
  const [status, setStatus] = useState("No preview destination selected.");
  const previewPrevious = {
    ...previous,
    linkProps: {
      onClick: handlePreviewClick(String(previous.label), setStatus),
    },
  };
  const previewNext = {
    ...next,
    linkProps: { onClick: handlePreviewClick(String(next.label), setStatus) },
  };
  const previewDocumentationLinks = documentationLinks.map((link) => ({
    ...link,
    onClick: handlePreviewClick(String(link.label), setStatus),
  }));
  const previewContactLinks = contactLinks.map((link) => ({
    ...link,
    onClick: handlePreviewClick(String(link.label), setStatus),
  }));

  return (
    <TidalFooterDocumentation
      aria-label="Documentation footer example"
      brand={
        <a href="#preview-home" onClick={handlePreviewClick("Home", setStatus)}>
          TidalUI
        </a>
      }
      eyebrow="Documentation"
      heading="Continue reading."
      description="Guides, references and support for your next step."
      version="v1.0"
      versionLabel="Version"
      adjacentLabel="Adjacent documentation"
      previous={previewPrevious}
      next={previewNext}
      documentationLinks={previewDocumentationLinks}
      contactLinks={previewContactLinks}
      legal={<span>© 2026 TidalUI preview</span>}
      status={<span role="status">{status}</span>}
    />
  );
}

export default function AgentExample() {
  return (
    <div className="tidal-scope" data-theme="light" dir="ltr">
      <FooterDocumentationDemo />
    </div>
  );
}

```

## Gotchas

- The host application owns data, validation, persistence, navigation, and service side effects described by this API.

## Theme and accessibility

{"tokens":["--t-accent","--t-border","--t-border-strong","--t-canvas","--t-danger","--t-display","--t-ease-out","--t-ease-spring","--t-faint","--t-font","--t-ink","--t-line","--t-muted","--t-primary","--t-primary-contrast","--t-radius-card","--t-radius-control","--t-radius-overlay","--t-radius-panel","--t-ring","--t-shadow-lg","--t-shadow-soft","--t-soft","--t-subtle","--t-surface","--t-wash"],"darkMode":true}

{"keyboard":["Tab and Shift+Tab follow the component's native focus order."],"aria":"The component wires labels and relationships from consumer-provided visible text or ARIA props; preserve those labels in production.","notes":"Verify focus visibility, text alternatives, contrast, and reduced motion in the final composition."}

Consumer-owned brand, heading, version, versionLabel, previous and next document destinations, adjacentLabel, documentation links, contact links, descriptions, and legal/status nodes. All anchors forward native attributes and refs while owning children and dangerous markup. Disabled destinations suppress href and activation while preserving aria-disabled=false when supplied. Subheading levels are constrained to a deeper h3-h5 level than the main h2-h4 heading, with automatic derivation when omitted. The footer performs no requests, routing, storage, timers, tracking, or version lookup.
