# Help center template

A complete responsive help page with grouped search results, categorized questions, native page actions, and real destinations.

Access: pro. Category: Templates. Kind: template.

## When to use

- Use it to start a complete help center template whose major regions should share one responsive composition.
- Choose it as the nav region when composing a page from independently reusable TidalUI sections.

## Alternatives

- Choose dashboard-layout instead when a responsive semantic dashboard shell with composable header, navigation, main content, and an in-flow mobile disclosure is the actual interface need, rather than help center template.

## 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 Help center template

```sh
npx shadcn@latest add @tidal-pro/help-center-template
```

Stylesheets: `components/ui/tidal.css`, `components/ui/help-center-template.css`.

## Minimal example

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

## Structured props

- `TidalHelpCenterTemplate.faq: TidalHelpCenterFaqConfig`: Required faq value accepted by this exported component.
- `TidalHelpCenterTemplate.searchResults: TidalHelpCenterSearchConfig`: Required search results value accepted by this exported component.
- `TidalHelpCenterTemplate.title: ReactNode`: Required title value accepted by this exported component.
- `TidalHelpCenterTemplate.actions?: ReadonlyArray<TidalHelpCenterAction> | undefined` (default []): Optional actions value accepted by this exported component.
- `TidalHelpCenterTemplate.actionsLabel?: string | undefined` (default "Help center actions"): Optional actions label value accepted by this exported component.
- `TidalHelpCenterTemplate.description?: ReactNode`: Optional description value accepted by this exported component.
- `TidalHelpCenterTemplate.eyebrow?: ReactNode`: Optional eyebrow value accepted by this exported component.
- `TidalHelpCenterTemplate.footer?: ReactNode`: Optional footer value accepted by this exported component.

## Complete usage example

[Source](https://tidalui.com/examples/help-center-template.tsx) | [Manifest](https://tidalui.com/examples/help-center-template.json). Install the listed additional dependencies. Consumer fixture: TypeScript pass; Vite pass. This fixture check is distinct from the actual shadcn install receipt.

```tsx
"use client";

import "./components/ui/tidal.css";

import { useId, useMemo, useRef, useState } from "react";

import { TidalHelpCenterTemplate, type TidalHelpCenterAction } from "./components/ui/help-center-template";

import type { TidalSearchFilter, TidalSearchResult, TidalSearchResultGroup } from "./components/ui/search-results";

import type { TidalFaqGroup } from "./components/ui/faq-section";

import "./components/ui/search-results.css";

import "./components/ui/faq-section.css";

import "./components/ui/help-center-template.css";

import "./components/ui/accordion.css";



const tidalExampleStyles = ".help-center-template-demo,\n.help-center-template-demo * {\n  box-sizing: border-box;\n}\n\n.help-center-template-demo {\n  width: 100%;\n  min-width: 0;\n  container: help-center-demo / inline-size;\n}\n\n.help-center-template-demo-notes {\n  display: grid;\n  grid-template-columns: repeat(2, minmax(0, 1fr));\n  gap: 10px;\n  margin-top: 20px;\n}\n\n.help-center-template-demo-notes article,\n.help-center-template-demo-contact {\n  min-width: 0;\n  padding: 18px;\n  border: 1px solid var(--t-border);\n  border-radius: 14px;\n  background: var(--t-subtle);\n  color: var(--t-muted);\n}\n\n.help-center-template-demo-notes article:focus-visible,\n.help-center-template-demo-contact:focus-visible {\n  outline: 2px solid var(--t-accent);\n  outline-offset: 3px;\n}\n\n.help-center-template-demo-notes span,\n.help-center-template-demo-contact > span {\n  color: var(--t-muted);\n  font-size: 11px;\n  font-weight: 720;\n  letter-spacing: 0.1em;\n  text-transform: uppercase;\n}\n\n.help-center-template-demo-notes h2,\n.help-center-template-demo-contact h2 {\n  margin: 7px 0 0;\n  color: var(--t-ink);\n  font-size: 18px;\n  line-height: 1.15;\n  overflow-wrap: anywhere;\n}\n\n.help-center-template-demo-notes p,\n.help-center-template-demo-contact p {\n  margin: 8px 0 0;\n  font-size: 11px;\n  line-height: 1.55;\n  overflow-wrap: anywhere;\n}\n\n.help-center-template-demo-contact {\n  margin-top: 10px;\n  background: var(--t-ink);\n  color: color-mix(in srgb, var(--t-surface) 72%, var(--t-ink));\n}\n\n.help-center-template-demo-contact > span,\n.help-center-template-demo-contact h2 {\n  color: var(--t-surface);\n}\n\n@container help-center-demo (max-width: 560px) {\n  .help-center-template-demo-notes {\n    grid-template-columns: minmax(0, 1fr);\n  }\n}";

type ResultType = "all" | "guide" | "policy";

interface HelpArticle {
  id: string;
  title: string;
  description: string;
  type: Exclude<ResultType, "all">;
  typeLabel: string;
  time: string;
  body: string;
}

const HELP_ARTICLES: readonly HelpArticle[] = [
  {
    id: "workspace-basics",
    title: "Set up a sample workspace",
    description: "Arrange the project list and choose a starting view.",
    type: "guide",
    typeLabel: "Guide",
    time: "4 min",
    body: "Start with one project, give it a clear name, and add only the teammates who need the sample view.",
  },
  {
    id: "review-files",
    title: "Review shared files",
    description: "Open a file, inspect its notes, and return to the library.",
    type: "guide",
    typeLabel: "Guide",
    time: "3 min",
    body: "Use the file detail view to read supplied notes before returning to the same filtered library position.",
  },
  {
    id: "sample-access",
    title: "Sample access policy",
    description: "Understand how the fictional preview labels access states.",
    type: "policy",
    typeLabel: "Policy",
    time: "2 min",
    body: "Access labels in this preview describe local sample state only. They do not grant an account or share a resource.",
  },
  {
    id: "archive-notes",
    title: "Archive notes policy",
    description: "See what the local archive example retains on screen.",
    type: "policy",
    typeLabel: "Policy",
    time: "2 min",
    body: "The archive example changes the visible local list. It does not retain, delete, or recover a real file.",
  },
];

const FAQ_GROUPS: readonly TidalFaqGroup[] = [
  {
    id: "workspace",
    label: "Workspace",
    description: "Starting and organizing the local sample.",
    questions: [
      {
        value: "workspace-name",
        title: "Can I rename the sample workspace?",
        searchText: "workspace name rename",
        answer:
          "Yes. In this preview, renaming updates local React state only and does not create an account or workspace.",
      },
      {
        value: "workspace-people",
        title: "Does adding a teammate send an invitation?",
        searchText: "teammate invite people",
        answer:
          "No. Fictional teammate choices remain inside the preview and do not send an invitation.",
      },
    ],
  },
  {
    id: "files",
    label: "Files",
    description: "Reviewing supplied sample documents.",
    questions: [
      {
        value: "files-download",
        title: "Which files can I open?",
        searchText: "open download sample files",
        answer:
          "Only the explicitly labelled sample documents and in-page notes included with this library are available.",
      },
      {
        value: "files-storage",
        title: "Are changes stored after reload?",
        searchText: "stored saved reload persistence",
        answer:
          "No. The connected examples use local component state and reset when the preview reloads.",
      },
    ],
  },
];

export function HelpCenterTemplateDemo() {
  const generatedId = useId().replace(/:/g, "");
  const searchRef = useRef<HTMLInputElement>(null);
  const [query, setQuery] = useState("");
  const [resultType, setResultType] = useState<ResultType>("all");
  const [faqCategory, setFaqCategory] = useState("all");
  const [openQuestion, setOpenQuestion] = useState("");

  const visibleArticles = useMemo(() => {
    const normalized = query.trim().toLocaleLowerCase();
    return HELP_ARTICLES.filter((article) => {
      const matchesType = resultType === "all" || article.type === resultType;
      const matchesQuery =
        !normalized ||
        `${article.title} ${article.description} ${article.typeLabel}`
          .toLocaleLowerCase()
          .includes(normalized);
      return matchesType && matchesQuery;
    });
  }, [query, resultType]);

  const filters: readonly TidalSearchFilter[] = [
    {
      id: "all",
      label: "All",
      accessibleLabel: "Show all help results",
      count: HELP_ARTICLES.length,
    },
    {
      id: "guide",
      label: "Guides",
      accessibleLabel: "Show guides",
      count: HELP_ARTICLES.filter((article) => article.type === "guide").length,
    },
    {
      id: "policy",
      label: "Policies",
      accessibleLabel: "Show policies",
      count: HELP_ARTICLES.filter((article) => article.type === "policy")
        .length,
    },
  ];

  const searchResults: readonly TidalSearchResult[] = visibleArticles.map(
    (article) => ({
      id: article.id,
      title: article.title,
      description: article.description,
      typeLabel: article.typeLabel,
      meta: article.time,
      action: {
        kind: "link",
        href: `#help-article-${generatedId}-${article.id}`,
        accessibleLabel: `Open ${article.title}`,
      },
    }),
  );

  const groups: readonly TidalSearchResultGroup[] = searchResults.length
    ? [
        {
          id: "help-results",
          title: "Guides and policies",
          accessibleLabel: `${searchResults.length} matching help results`,
          count: searchResults.length,
          results: searchResults,
        },
      ]
    : [];

  const actions: readonly TidalHelpCenterAction[] = [
    {
      id: "browse",
      kind: "link",
      href: `#help-browse-${generatedId}`,
      label: "Browse guides",
      description: "Search the supplied local library.",
      emphasis: "primary",
    },
    {
      id: "contact",
      kind: "link",
      href: `#help-contact-${generatedId}`,
      label: "Contact options",
      description: "Review this sample boundary.",
    },
  ];

  function resetResults() {
    setQuery("");
    setResultType("all");
    searchRef.current?.focus({ preventScroll: true });
  }

  return (
    <section
      className="help-center-template-demo"
      aria-label="Help center sample"
    >
      <TidalHelpCenterTemplate
        title="Find a clear next step"
        eyebrow="Help center"
        description="Search supplied guides, inspect local policies, and open concise answers for this fictional workspace."
        actions={actions}
        searchResults={{
          id: `help-browse-${generatedId}`,
          title: "Browse the help library",
          eyebrow: null,
          description:
            "Search four supplied help notes or narrow the visible type.",
          queryControl: {
            label: "Search help",
            value: query,
            placeholder: "Search guides and policies",
            inputRef: searchRef,
            inputProps: { autoComplete: "off" },
            onValueChange: setQuery,
          },
          filters,
          selectedFilterId: resultType,
          onFilterChange: (filter) => setResultType(filter.id as ResultType),
          groups,
          resultCount: searchResults.length,
          resultCountLabel: (count) =>
            `${count} ${count === 1 ? "help result" : "help results"}`,
          emptyTitle: "No matching help notes",
          emptyDescription:
            "Clear the current query and type to restore the supplied library.",
          emptyAction: {
            label: "Show all help",
            accessibleLabel: "Clear help search and show every result",
            onAction: resetResults,
          },
        }}
        faq={{
          id: `help-faq-${generatedId}`,
          title: "Common questions",
          eyebrow: null,
          description:
            "Open an answer from the supplied workspace and file topics.",
          groups: FAQ_GROUPS,
          value: openQuestion,
          onValueChange: setOpenQuestion,
          category: {
            value: faqCategory,
            allId: "all",
            label: "FAQ topics",
            options: [
              { id: "all", label: "All topics" },
              { id: "workspace", label: "Workspace" },
              { id: "files", label: "Files" },
            ],
            onValueChange: (value) => {
              setFaqCategory(value);
              setOpenQuestion("");
            },
          },
          reset: {
            label: "Reset questions",
            onReset: () => {
              setFaqCategory("all");
              setOpenQuestion("");
            },
          },
          summaryHint: "Choose a topic, then open a supplied answer.",
        }}
        footer="Sample help content. Search, filters, links, and answers stay in this preview."
      />

      <div
        className="help-center-template-demo-notes"
        aria-label="Help article notes"
      >
        {HELP_ARTICLES.map((article) => (
          <article
            key={article.id}
            id={`help-article-${generatedId}-${article.id}`}
            tabIndex={-1}
          >
            <span>{article.typeLabel}</span>
            <h2>{article.title}</h2>
            <p>{article.body}</p>
          </article>
        ))}
      </div>

      <aside
        id={`help-contact-${generatedId}`}
        className="help-center-template-demo-contact"
        tabIndex={-1}
      >
        <span>Contact sample</span>
        <h2>No support request is sent</h2>
        <p>
          This in-page note demonstrates a help destination without creating a
          ticket, message, account, or stored record.
        </p>
      </aside>
    </section>
  );
}

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

title is required and renders the page h1 inside a content div, avoiding an implicit nested main landmark. Optional eyebrow and description preserve numeric zero. searchResults and faq are required typed configurations inferred from @tidal-pro/search-results and @tidal-pro/faq-section; the template owns their h2 and descendant heading hierarchy and forwards the remaining native component contracts. Optional ordered page actions are native buttons or real anchors with unique IDs, consumer labels and descriptions, emphasis, disabled state, matching attributes and refs. Button native clicks run first and prevention suppresses onAction. Links preserve href, modifiers, target, download and explicit aria-disabled false; disabled links prevent navigation before caller handling. Optional actionsLabel, footer and root native attributes/ref remain consumer-owned. The template performs no search, filtering, support request, account, request, routing, analytics, network, storage or persistence action.
