# Newsletter footer

Close a marketing page with useful navigation and a complete consumer-controlled newsletter form.

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

## When to use

- Use it when a page needs close a marketing page with useful navigation and a complete consumer-controlled newsletter form.
- 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 newsletter 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 Newsletter footer

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

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

## Minimal example

```tsx
import"./components/ui/tidal.css";
import"./components/ui/footer-newsletter.css";
import{TidalFooterNewsletter}from"./components/ui/footer-newsletter";
export default()=><div className="tidal-scope"><TidalFooterNewsletter brand={"value"} links={[{id:"example",href:"#",label:"Demo"}]} newsletterProps={{}} title={"Demo"}/></div>;
```

## Structured props

- `TidalFooterNewsletter.brand: ReactNode`: Required brand value accepted by this exported component.
- `TidalFooterNewsletter.links: ReadonlyArray<TidalFooterNewsletterLinkItem>`: Required links value accepted by this exported component.
- `TidalFooterNewsletter.newsletterProps: TidalFooterNewsletterFormProps`: Required newsletter props value accepted by this exported component.
- `TidalFooterNewsletter.title: ReactNode`: Required title value accepted by this exported component.
- `TidalFooterNewsletter.description?: ReactNode`: Optional description value accepted by this exported component.
- `TidalFooterNewsletter.eyebrow?: ReactNode` (default "Newsletter"): Optional eyebrow value accepted by this exported component.
- `TidalFooterNewsletter.formRef?: Ref<HTMLFormElement> | undefined`: Optional form ref value accepted by this exported component.
- `TidalFooterNewsletter.headingLevel?: "h2" | "h3" | "h4" | undefined` (default "h2"): Optional heading level value accepted by this exported component.
- `TidalFooterNewsletter.legal?: ReactNode`: Optional legal value accepted by this exported component.
- `TidalFooterNewsletter.navigationLabel?: string | undefined` (default "Footer navigation"): Optional navigation label value accepted by this exported component.
- `TidalFooterNewsletter.status?: ReactNode`: Optional status value accepted by this exported component.

## Complete usage example

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

import type { TidalNewsletterSignupStatus } from "./components/ui/newsletter-signup";

import { TidalFooterNewsletter, type TidalFooterNewsletterLinkItem } from "./components/ui/footer-newsletter";

import "./components/ui/newsletter-signup.css";

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

import "./components/ui/form-field.css";



const tidalExampleStyles = ".tidal-scope .footer-pilot-demo,\n.tidal-scope .footer-pilot-demo * {\n  box-sizing: border-box;\n}\n\n.tidal-scope .footer-pilot-demo {\n  inline-size: min(100%, 1240px);\n  min-inline-size: 0;\n  margin-inline: auto;\n}";

function isPlainPrimary(event: MouseEvent<HTMLAnchorElement>) {
  return (
    event.button === 0 &&
    !event.metaKey &&
    !event.ctrlKey &&
    !event.shiftKey &&
    !event.altKey
  );
}

export function FooterNewsletterDemo() {
  const [email, setEmail] = useState("");
  const [emailError, setEmailError] = useState<string>();
  const [status, setStatus] = useState<TidalNewsletterSignupStatus>("idle");
  const [message, setMessage] = useState<ReactNode>();
  const emailRef = useRef<HTMLInputElement>(null);

  function announce(nextStatus: TidalNewsletterSignupStatus, next: string) {
    setStatus(nextStatus);
    setMessage(next);
  }

  function sampleLink(
    id: string,
    label: string,
  ): TidalFooterNewsletterLinkItem {
    return {
      id,
      label,
      href: "#footer-newsletter-demo",
      onClick: (event: import("react").MouseEvent<HTMLAnchorElement>) => {
        if (!isPlainPrimary(event)) return;
        event.preventDefault();
        announce("success", `${label} selected locally.`);
      },
    };
  }

  function handleSubmit(event: FormEvent<HTMLFormElement>) {
    event.preventDefault();
    const input = emailRef.current;
    if (!input?.validity.valid) {
      const nextError = input?.validity.valueMissing
        ? "Enter an email address."
        : "Enter an email address in the correct format.";
      setEmailError(nextError);
      announce(
        "error",
        "Review the email field and try the local sample again.",
      );
      input?.focus();
      return;
    }

    setEmailError(undefined);
    announce(
      "success",
      "Sample email validated locally. No subscription was created.",
    );
  }

  return (
    <div className="footer-pilot-demo" id="footer-newsletter-demo">
      <TidalFooterNewsletter
        brand="TidalUI"
        title="Product updates, once a month."
        description="New components, practical examples and release notes."
        links={[
          sampleLink("archive", "Read the archive"),
          sampleLink("principles", "What to expect"),
          sampleLink("privacy", "Privacy"),
        ]}
        newsletterProps={{
          noValidate: true,
          onSubmit: handleSubmit,
          status,
          statusMessage: message,
          emailLabel: "Work email",
          emailDescription: "Used only for this local component sample.",
          emailError,
          emailRef,
          emailInputProps: {
            value: email,
            placeholder: "you@example.com",
            onChange: (event: import("react").ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => {
              setEmail(event.currentTarget.value);
              setEmailError(undefined);
              setStatus("idle");
              setMessage(undefined);
            },
          },
          submitLabel: "Validate sample email",
          consent:
            "This preview validates the field in your browser and does not send or store the address.",
        }}
        legal="© 2026 TidalUI. Sample form only."
      />
    </div>
  );
}

export default function AgentExample() {
  return (
    <div className="tidal-scope" data-theme="light" dir="ltr">
      <style>{tidalExampleStyles}</style>
      <FooterNewsletterDemo />
    </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."}

Required brand, title, consumer-owned links and newsletterProps. Links require unique nonblank IDs; duplicate or blank IDs are omitted. The semantic footer, form and native anchors forward safe native attributes and direct refs while runtime guards remove replacement children, dangerouslySetInnerHTML, nested form footer markup and owned form headings. aria-disabled links omit href and suppress activation. Optional description, eyebrow, legal and status regions preserve numeric zero. The newsletter heading is bounded to h2-h4. The consumer owns email state, validation, submission, consent, transport, destinations and every side effect. The responsive neutral layout preserves 44px controls, 16px phone text, explicit field labels, long-text wrapping, RTL arrow direction and reduced-motion behavior.
