# Developer setup footer

Package-manager selection, installation commands and developer documentation.

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

## When to use

- Use it when a page needs package-manager selection, installation commands and developer documentation.
- 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 developer setup 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 Developer setup footer

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

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

## Minimal example

```tsx
import"./components/ui/tidal.css";
import"./components/ui/footer-developer.css";
import{TidalFooterDeveloper}from"./components/ui/footer-developer";
export default(p:Parameters<typeof TidalFooterDeveloper>[0])=><div className="tidal-scope"><TidalFooterDeveloper {...p}/></div>;
```

## Structured props

- `TidalFooterDeveloper.brand: ReactNode`: Required brand value accepted by this exported component.
- `TidalFooterDeveloper.heading: ReactNode`: Required heading value accepted by this exported component.
- `TidalFooterDeveloper.navigationGroups: ReadonlyArray<TidalFooterDeveloperNavGroup>`: Required navigation groups value accepted by this exported component.
- `TidalFooterDeveloper.onOptionChange: (id: string, option: TidalFooterDeveloperOption) => void`: Callback invoked when the option change interaction is proposed.
- `TidalFooterDeveloper.options: ReadonlyArray<TidalFooterDeveloperOption>`: Required options value accepted by this exported component.
- `TidalFooterDeveloper.selectedOptionId: string`: Required selected option id value accepted by this exported component.
- `TidalFooterDeveloper.codeBlockRef?: Ref<HTMLElement> | undefined`: Optional code block ref value accepted by this exported component.
- `TidalFooterDeveloper.copyButtonProps?: TidalFooterDeveloperCopyProps | undefined`: Optional copy button props value accepted by this exported component.
- `TidalFooterDeveloper.copyButtonRef?: Ref<HTMLButtonElement> | undefined`: Optional copy button ref value accepted by this exported component.
- `TidalFooterDeveloper.description?: ReactNode`: Optional description value accepted by this exported component.
- `TidalFooterDeveloper.emptyOptionsLabel?: ReactNode` (default "No install options supplied."): Optional empty options label value accepted by this exported component.
- `TidalFooterDeveloper.eyebrow?: ReactNode` (default "Developer setup"): Optional eyebrow value accepted by this exported component.
- `TidalFooterDeveloper.headingLevel?: TidalFooterDeveloperHeadingLevel | undefined` (default "h2"): Optional heading level value accepted by this exported component.
- `TidalFooterDeveloper.installLabel?: ReactNode` (default "Install"): Optional install label value accepted by this exported component.
- `TidalFooterDeveloper.legal?: ReactNode`: Optional legal value accepted by this exported component.
- `TidalFooterDeveloper.navigationHeadingLevel?: TidalFooterDeveloperSubheadingLevel | undefined`: Optional navigation heading level value accepted by this exported component.
- `TidalFooterDeveloper.navigationLabel?: string | undefined` (default "Developer navigation"): Optional navigation label value accepted by this exported component.
- `TidalFooterDeveloper.requirements?: ReactNode`: Optional requirements value accepted by this exported component.
- `TidalFooterDeveloper.selectorLabel?: string | undefined` (default "Package manager"): Optional selector label value accepted by this exported component.
- `TidalFooterDeveloper.status?: ReactNode`: Optional status value accepted by this exported component.

## Complete usage example

[Source](https://tidalui.com/examples/footer-developer.tsx) | [Manifest](https://tidalui.com/examples/footer-developer.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 { useEffect, useMemo, useRef, useState, type MouseEvent } from "react";

import type { TidalClipboardAdapter } from "./components/ui/copy-button";

import { TidalFooterDeveloper, type TidalFooterDeveloperNavGroup, type TidalFooterDeveloperOption } from "./components/ui/footer-developer";

import "./components/ui/copy-button.css";

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

import "./components/ui/segmented-control.css";

import "./components/ui/code-block.css";



const options: readonly TidalFooterDeveloperOption[] = [
  {
    id: "pnpm",
    label: "pnpm",
    command: "pnpm add react@19.3.0",
    filename: "pnpm",
  },
  {
    id: "npm",
    label: "npm",
    command: "npm install react@19.3.0",
    filename: "npm",
  },
  {
    id: "bun",
    label: "Bun",
    command: "bun add react@19.3.0",
    filename: "Bun",
  },
];

function localLink(label: string, setStatus: (message: 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 preview.`);
  };
}

export function FooterDeveloperDemo() {
  const [selectedOptionId, setSelectedOptionId] = useState("pnpm");
  const [status, setStatus] = useState("No preview action selected.");
  const mountedRef = useRef(false);
  const requestRef = useRef(0);
  const pendingRef = useRef(
    new Map<number, { timer: number; settle: () => void }>(),
  );

  useEffect(() => {
    mountedRef.current = true;
    return () => {
      mountedRef.current = false;
      requestRef.current += 1;
      for (const { timer, settle } of pendingRef.current.values()) {
        window.clearTimeout(timer);
        settle();
      }
      pendingRef.current.clear();
    };
  }, []);

  const clipboard = useMemo<TidalClipboardAdapter>(
    () => ({
      writeText(value) {
        const request = ++requestRef.current;
        if (mountedRef.current) {
          setStatus("The preview adapter is receiving the command.");
        }
        return new Promise<void>((resolve) => {
          const settle = () => resolve();
          const timer = window.setTimeout(() => {
            pendingRef.current.delete(request);
            if (mountedRef.current && request === requestRef.current) {
              setStatus(`Preview adapter received ${value.length} characters.`);
            }
            resolve();
          }, 280);
          pendingRef.current.set(request, { timer, settle });
        });
      },
    }),
    [],
  );
  const groups: readonly TidalFooterDeveloperNavGroup[] = [
    {
      id: "build",
      label: "Build",
      links: [
        {
          id: "api",
          label: "API reference",
          href: "#preview-api",
          onClick: localLink("API reference", setStatus),
        },
        {
          id: "sdks",
          label: "SDK guide",
          href: "#preview-sdks",
          onClick: localLink("SDK guide", setStatus),
        },
      ],
    },
    {
      id: "operate",
      label: "Operate",
      links: [
        {
          id: "status",
          label: "Service status",
          href: "#preview-status",
          onClick: localLink("Service status", setStatus),
        },
        {
          id: "support",
          label: "Developer support",
          href: "#preview-support",
          onClick: localLink("Developer support", setStatus),
        },
      ],
    },
  ];

  return (
    <TidalFooterDeveloper
      brand={
        <a href="#preview-home" onClick={localLink("Home", setStatus)}>
          TidalUI
        </a>
      }
      heading="Start building."
      description="Add React to your project, then explore the docs."
      options={options}
      selectedOptionId={selectedOptionId}
      onOptionChange={(id) => {
        setSelectedOptionId(id);
        setStatus(`${id} command selected.`);
      }}
      navigationGroups={groups}
      requirements="Sample commands for React 19.3.0. This preview never runs them."
      copyButtonProps={{
        clipboard,
        labels: {
          idle: "Copy sample",
          pending: "Sending to adapter",
          success: "Adapter received",
          error: "Adapter failed",
        },
        onCopyError: () => setStatus("The preview adapter rejected the copy."),
      }}
      legal={<span>Developer preview</span>}
      status={<span role="status">{status}</span>}
    />
  );
}

export default function AgentExample() {
  return (
    <div className="tidal-scope" data-theme="light" dir="ltr">
      <FooterDeveloperDemo />
    </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.","Arrow-key behavior follows the exported composite-control implementation."],"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, exact install options, selected option, option callback, developer navigation, requirements and legal/status content. The footer composes the accepted Segmented control, Pro Code block and Copy button. Commands render as inert text and are never executed. Copy behavior uses TidalCopyButton's truthful pending/success/error contract and injectable clipboard adapter. Native destinations and refs remain consumer-owned. The Pro code-block dependency requires entitlement.
