# Directory footer

Search a site directory and expand navigation groups.

Access: free. Category: Blocks. Kind: section.

## When to use

- Use it when a page needs search a site directory and expand navigation groups.
- 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 directory 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 Directory footer

```sh
npx shadcn@latest add https://tidalui.com/r/footer-directory.json
```

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

## Minimal example

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

## Structured props

- `TidalFooterDirectory.brand: ReactNode`: Required brand value accepted by this exported component.
- `TidalFooterDirectory.groups: ReadonlyArray<TidalFooterDirectoryGroup>`: Required groups value accepted by this exported component.
- `TidalFooterDirectory.title: ReactNode`: Required title value accepted by this exported component.
- `TidalFooterDirectory.defaultOpenGroupIds?: ReadonlyArray<string> | undefined`: Optional default open group ids value accepted by this exported component.
- `TidalFooterDirectory.description?: ReactNode`: Optional description value accepted by this exported component.
- `TidalFooterDirectory.eyebrow?: ReactNode` (default "Directory"): Optional eyebrow value accepted by this exported component.
- `TidalFooterDirectory.headingLevel?: TidalFooterDirectoryHeadingLevel | undefined` (default "h2"): Optional heading level value accepted by this exported component.
- `TidalFooterDirectory.legal?: ReactNode`: Optional legal value accepted by this exported component.
- `TidalFooterDirectory.navigationLabel?: string | undefined` (default "Footer directory"): Optional navigation label value accepted by this exported component.
- `TidalFooterDirectory.noResultsLabel?: ReactNode` (default "No destinations match that search."): Optional no results label value accepted by this exported component.
- `TidalFooterDirectory.onGroupToggle?: ((groupId: string, open: boolean) => void) | undefined`: Callback invoked when the group toggle interaction is proposed.
- `TidalFooterDirectory.openGroupIds?: ReadonlyArray<string> | undefined`: Optional open group ids value accepted by this exported component.
- `TidalFooterDirectory.searchInputProps?: TidalFooterDirectorySearchProps | undefined`: Optional search input props value accepted by this exported component.
- `TidalFooterDirectory.status?: ReactNode`: Optional status value accepted by this exported component.

## Complete usage example

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

import { TidalFooterDirectory, type TidalFooterDirectoryGroup, type TidalFooterDirectoryLinkItem } from "./components/ui/footer-directory";

import "./components/ui/footer-directory.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 FooterDirectoryDemo() {
  const [query, setQuery] = useState("");
  const [notice, setNotice] = useState(
    "Directory ready. Search or open a group.",
  );
  const [openGroups, setOpenGroups] = useState<readonly string[]>(["product"]);

  function sampleLink(
    id: string,
    label: string,
    searchText: string,
    description: string,
  ): TidalFooterDirectoryLinkItem {
    return {
      id,
      label,
      description,
      searchText,
      href: "#footer-directory-demo",
      onClick: (event: import("react").MouseEvent<HTMLAnchorElement>) => {
        if (!isPlainPrimary(event)) return;
        event.preventDefault();
        setNotice(`${label} selected locally. No navigation occurred.`);
      },
    };
  }

  const groups: readonly TidalFooterDirectoryGroup[] = [
    {
      id: "product",
      title: "Product",
      description: "Core surfaces and capabilities.",
      links: [
        sampleLink(
          "components",
          "Components",
          "components library blocks",
          "Browse the component library",
        ),
        sampleLink(
          "templates",
          "Templates",
          "templates page layouts",
          "Start from a full page",
        ),
        sampleLink(
          "release-notes",
          "Release notes",
          "release notes updates",
          "Review shipped changes",
        ),
      ],
    },
    {
      id: "resources",
      title: "Resources",
      description: "Practical material for teams.",
      links: [
        sampleLink(
          "docs",
          "Documentation",
          "docs guides usage",
          "Read implementation guidance",
        ),
        sampleLink(
          "examples",
          "Examples",
          "examples demos",
          "See complete working patterns",
        ),
        sampleLink(
          "support",
          "Support",
          "support help contact",
          "Find help for a project",
        ),
      ],
    },
    {
      id: "company",
      title: "Company",
      description: "The people and operating notes.",
      links: [
        sampleLink(
          "about",
          "About TidalUI",
          "about company team",
          "Learn how the library is made",
        ),
        sampleLink(
          "journal",
          "Journal",
          "journal writing notes",
          "Read product notes",
        ),
        sampleLink(
          "contact",
          "Contact",
          "contact email",
          "Start a useful conversation",
        ),
      ],
    },
    {
      id: "legal",
      title: "Legal",
      description: "Policies and access terms.",
      links: [
        sampleLink(
          "license",
          "License",
          "license terms usage",
          "Review usage terms",
        ),
        sampleLink(
          "privacy",
          "Privacy",
          "privacy data",
          "Read the privacy policy",
        ),
        sampleLink(
          "accessibility",
          "Accessibility",
          "accessibility inclusion",
          "Review accessibility commitments",
        ),
      ],
    },
  ];

  function handleSearch(event: ChangeEvent<HTMLInputElement>) {
    setQuery(event.currentTarget.value);
    setNotice(
      event.currentTarget.value
        ? "Filtering destinations locally."
        : "Directory ready. Search or open a group.",
    );
  }

  return (
    <div className="footer-pilot-demo" id="footer-directory-demo">
      <TidalFooterDirectory
        brand="TidalUI"
        eyebrow="Enterprise directory"
        title="Find what you need."
        description="Product, resources, company and policies."
        groups={groups}
        searchInputProps={{
          value: query,
          onChange: handleSearch,
          placeholder: "Search destinations",
          autoComplete: "off",
          spellCheck: false,
        }}
        openGroupIds={openGroups}
        onGroupToggle={(groupId, open) => {
          setOpenGroups((current) =>
            open
              ? [...current, groupId]
              : current.filter((id) => id !== groupId),
          );
          setNotice(`${groupId} group ${open ? "opened" : "closed"} locally.`);
        }}
        legal="© 2026 TidalUI. Sample destinations only."
        status={
          <span role="status" aria-live="polite">
            {notice}
          </span>
        }
      />
    </div>
  );
}

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

Required brand, title and consumer-owned groups. Groups and links require unique nonblank IDs; duplicate or blank IDs are omitted. Optional controlled search input props filter destinations by consumer-supplied searchText and text labels, while optional controlled openGroupIds and onGroupToggle support responsive disclosures at every width. Native footer, input and anchor attributes plus direct refs are forwarded; children and dangerouslySetInnerHTML replacement are removed. aria-disabled links omit href and suppress activation. Heading levels are bounded to h2-h4 and group headings remain subordinate. The consumer owns every destination, search state, callback and side effect.
