# Office locations footer

An office directory with an interactive location diagram and contact details.

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

## When to use

- Use it when a page needs an office directory with an interactive location diagram and contact details.
- 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 office locations 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 Office locations footer

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

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

## Minimal example

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

## Structured props

- `TidalFooterLocations.brand: ReactNode`: Required brand value accepted by this exported component.
- `TidalFooterLocations.heading: ReactNode`: Required heading value accepted by this exported component.
- `TidalFooterLocations.navigationGroups: ReadonlyArray<TidalFooterLocationsNavGroup>`: Required navigation groups value accepted by this exported component.
- `TidalFooterLocations.offices: ReadonlyArray<TidalFooterLocationOffice>`: Required offices value accepted by this exported component.
- `TidalFooterLocations.activeOfficeId?: string | null | undefined`: Optional active office id value accepted by this exported component.
- `TidalFooterLocations.defaultActiveOfficeId?: string | null | undefined`: Optional default active office id value accepted by this exported component.
- `TidalFooterLocations.description?: ReactNode`: Optional description value accepted by this exported component.
- `TidalFooterLocations.headingLevel?: TidalFooterLocationsHeadingLevel | undefined` (default "h2"): Optional heading level value accepted by this exported component.
- `TidalFooterLocations.legal?: ReactNode`: Optional legal value accepted by this exported component.
- `TidalFooterLocations.mapLabel?: string | undefined` (default "Office location diagram"): Optional map label value accepted by this exported component.
- `TidalFooterLocations.navigationHeadingLevel?: TidalFooterLocationsSubheadingLevel | undefined`: Optional navigation heading level value accepted by this exported component.
- `TidalFooterLocations.officeLabel?: string | undefined` (default "Office locations"): Optional office label value accepted by this exported component.
- `TidalFooterLocations.onOfficeChange?: ((officeId: string, event: MouseEvent<HTMLButtonElement>) => void) | undefined`: Callback invoked when the office change interaction is proposed.
- `TidalFooterLocations.status?: ReactNode`: Optional status value accepted by this exported component.

## Complete usage example

[Source](https://tidalui.com/examples/footer-locations.tsx) | [Manifest](https://tidalui.com/examples/footer-locations.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 { TidalFooterLocations, type TidalFooterLocationsNavGroup, type TidalFooterLocationOffice } from "./components/ui/footer-locations";

import "./components/ui/footer-locations.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 offices: readonly TidalFooterLocationOffice[] = [
  {
    id: "chicago",
    city: "Chicago",
    timezone: "Central Time",
    timeReference: "10:00–18:00 · Sample hours",
    address: "100 Example Avenue, Chicago",
    addressHref: "#preview-chicago-office",
    mapX: 26,
    mapY: 34,
  },
  {
    id: "lisbon",
    city: "Lisbon",
    timezone: "Western European Time",
    timeReference: "09:00–17:00 · Sample hours",
    address: "20 Example Square, Lisbon",
    addressHref: "#preview-lisbon-office",
    mapX: 64,
    mapY: 23,
  },
  {
    id: "singapore",
    city: "Singapore",
    timezone: "Singapore Time",
    timeReference: "09:30–18:30 · Sample hours",
    address: "30 Example Street, Singapore",
    addressHref: "#preview-singapore-office",
    mapX: 82,
    mapY: 44,
  },
];

const navigationGroups: readonly TidalFooterLocationsNavGroup[] = [
  {
    id: "visit",
    label: "Visit",
    links: [
      { id: "offices", label: "Office locations", href: "#preview-offices" },
      { id: "access", label: "Accessibility", href: "#preview-accessibility" },
    ],
  },
  {
    id: "learn",
    label: "Learn",
    links: [
      { id: "docs", label: "Documentation", href: "#preview-docs" },
      { 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 FooterLocationsDemo() {
  const [activeOfficeId, setActiveOfficeId] = useState<string | null>(
    "chicago",
  );
  const [status, setStatus] = useState("No preview destination selected.");
  const previewOffices = offices.map((office) => ({
    ...office,
    addressLinkProps: {
      ...office.addressLinkProps,
      onClick: handlePreviewClick(String(office.city), setStatus),
    },
  }));
  const previewNavigationGroups = navigationGroups.map((group) => ({
    ...group,
    links: group.links.map((link) => ({
      ...link,
      onClick: handlePreviewClick(String(link.label), setStatus),
    })),
  }));
  return (
    <div className="footer-pilot-05-demo">
      <div className="footer-pilot-05-demo-shell">
        <TidalFooterLocations
          aria-label="Office locations footer example"
          brand={
            <a
              href="#preview-home"
              onClick={handlePreviewClick("Home", setStatus)}
            >
              TidalUI
            </a>
          }
          heading="Our offices."
          description="Select a sample location to view its details."
          offices={previewOffices}
          navigationGroups={previewNavigationGroups}
          activeOfficeId={activeOfficeId}
          onOfficeChange={(officeId) => {
            setActiveOfficeId(officeId);
            setStatus(`${officeId} selected in this local preview.`);
          }}
          legal={<span>Fictional offices and sample hours.</span>}
          status={<span role="status">{status}</span>}
        />
      </div>
    </div>
  );
}

export default function AgentExample() {
  return (
    <div className="tidal-scope" data-theme="light" dir="ltr">
      <style>{tidalExampleStyles}</style>
      <FooterLocationsDemo />
    </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 offices require city, timezone, address, timeReference, and numeric mapX/mapY values. The active office can be controlled or initialized, with an onOfficeChange callback. Address and navigation links forward safe native attributes and refs while owning children, href, and dangerous markup. Subheading levels are constrained to a deeper h3-h5 level than the main h2-h4 heading, with automatic derivation when omitted. Office selection uses aria-pressed without aria-controls because all details remain visible. The diagram uses only inline original neutral geometry and never reads current time, a clock, a map service, storage, or network.
