# Feedback footer

Collect page feedback alongside documentation and support links.

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

## When to use

- Use it when a page needs collect page feedback alongside documentation and support links.
- 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 feedback 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 Feedback footer

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

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

## Minimal example

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

## Structured props

- `TidalFooterFeedback.brand: ReactNode`: Required brand value accepted by this exported component.
- `TidalFooterFeedback.completionMessage: ReactNode`: Required completion message value accepted by this exported component.
- `TidalFooterFeedback.feedback: Omit<TidalResponseFeedbackProps, "className" | "title" | "children" | "dangerouslySetInnerHTML" | "success">`: Required feedback value accepted by this exported component.
- `TidalFooterFeedback.heading: ReactNode`: Required heading value accepted by this exported component.
- `TidalFooterFeedback.navigationGroups: ReadonlyArray<TidalFooterFeedbackNavGroup>`: Required navigation groups value accepted by this exported component.
- `TidalFooterFeedback.completed?: boolean | undefined` (default false): Optional completed value accepted by this exported component.
- `TidalFooterFeedback.description?: ReactNode`: Optional description value accepted by this exported component.
- `TidalFooterFeedback.feedbackRef?: Ref<HTMLFormElement> | undefined`: Optional feedback ref value accepted by this exported component.
- `TidalFooterFeedback.feedbackTitle?: ReactNode` (default "Was this page helpful?"): Optional feedback title value accepted by this exported component.
- `TidalFooterFeedback.headingLevel?: TidalFooterFeedbackHeadingLevel | undefined` (default "h2"): Optional heading level value accepted by this exported component.
- `TidalFooterFeedback.legal?: ReactNode`: Optional legal value accepted by this exported component.
- `TidalFooterFeedback.navigationHeadingLevel?: TidalFooterFeedbackSubheadingLevel | undefined`: Optional navigation heading level value accepted by this exported component.
- `TidalFooterFeedback.status?: ReactNode`: Optional status value accepted by this exported component.

## Complete usage example

[Source](https://tidalui.com/examples/footer-feedback.tsx) | [Manifest](https://tidalui.com/examples/footer-feedback.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 FormEvent, type MouseEvent } from "react";

import { TidalFooterFeedback, type TidalFooterFeedbackNavGroup } from "./components/ui/footer-feedback";

import type { TidalFeedbackChoice, TidalFeedbackReason } from "./components/ui/response-feedback";

import "./components/ui/response-feedback.css";

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



const tidalExampleStyles = ".tidal-scope .footer-pilot-05-demo,\n.tidal-scope .footer-pilot-05-demo-shell {\n  min-inline-size: 0;\n  inline-size: 100%;\n}";

const reasons: readonly TidalFeedbackReason[] = [
  { id: "unclear", label: "The explanation was unclear" },
  { id: "missing", label: "A step was missing" },
  { id: "example", label: "I needed another example" },
];

const navigationGroups: readonly TidalFooterFeedbackNavGroup[] = [
  {
    id: "docs",
    label: "Docs",
    links: [
      { id: "components", label: "Components", href: "#preview-components" },
      { id: "guides", label: "Guides", href: "#preview-guides" },
      { id: "api", label: "API reference", href: "#preview-api" },
    ],
  },
  {
    id: "help",
    label: "Help",
    links: [
      {
        id: "accessibility",
        label: "Accessibility",
        href: "#preview-accessibility",
      },
      { id: "support", label: "Support", href: "#preview-support" },
    ],
  },
];

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 ||
      event.currentTarget.target
    ) {
      return;
    }
    event.preventDefault();
    setStatus(`${label} selected in this local preview.`);
  };
}

export function FooterFeedbackDemo() {
  const [choice, setChoice] = useState<TidalFeedbackChoice | null>(null);
  const [selectedReasons, setSelectedReasons] = useState<readonly string[]>([]);
  const [comment, setComment] = useState("");
  const [completed, setCompleted] = useState(false);
  const [lastChoice, setLastChoice] = useState("No preview feedback selected.");
  const previewNavigationGroups = navigationGroups.map((group) => ({
    ...group,
    links: group.links.map((link) => ({
      ...link,
      onClick: handlePreviewClick(String(link.label), setLastChoice),
    })),
  }));

  function handleChoice(
    next: TidalFeedbackChoice,
    _event: MouseEvent<HTMLButtonElement>,
  ) {
    setChoice(next);
    setLastChoice(
      next === "helpful"
        ? "Helpful selected in local preview."
        : "Not helpful selected in local preview.",
    );
  }

  function handleSubmit(event: FormEvent<HTMLFormElement>) {
    event.preventDefault();
    setCompleted(true);
    setLastChoice("Local preview complete. No feedback was sent or stored.");
  }

  return (
    <div className="footer-pilot-05-demo">
      <div className="footer-pilot-05-demo-shell">
        <TidalFooterFeedback
          aria-label="Feedback footer example"
          brand={
            <a
              href="#preview-home"
              onClick={handlePreviewClick("Home", setLastChoice)}
            >
              TidalUI
            </a>
          }
          heading="Was this page useful?"
          feedbackTitle="Page feedback"
          description="Help us improve this guide."
          completionMessage="Thanks for checking this page. This preview did not send or store a response."
          completed={completed}
          feedback={{
            choice,
            onChoiceChange: handleChoice,
            reasons,
            selectedReasons,
            onReasonsChange: setSelectedReasons,
            comment,
            onCommentChange: setComment,
            onSubmit: handleSubmit,
            labels: { submit: "Complete preview" },
          }}
          navigationGroups={previewNavigationGroups}
          legal={<span>© 2026 TidalUI preview</span>}
          status={<span role="status">{lastChoice}</span>}
        />
      </div>
    </div>
  );
}

export default function AgentExample() {
  return (
    <div className="tidal-scope" data-theme="light" dir="ltr">
      <style>{tidalExampleStyles}</style>
      <FooterFeedbackDemo />
    </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, heading levels, navigation groups, controlled feedback state and callbacks, completionMessage, feedbackRef, and legal/status nodes. The footer composes TidalResponseFeedback and passes the controlled consumer callbacks through. It performs no request, storage, analytics, or feedback delivery itself; completion is shown only when the consumer sets completed. The response-feedback dependency is Pro and requires entitlement.
