# Trust center

Organize consumer-owned trust documents, access requests, status notes, and updates in one searchable block.

Access: pro. Category: Blocks. Kind: composite.

## When to use

- Use it when a page needs organize consumer-owned trust documents, access requests, status notes, and updates in one searchable block.
- Choose it inside an authenticated product surface when the host application owns routing, persistence, and service calls.

## Alternatives

- Choose empty-state instead when empty collections, search results and errors with a clear next action is the actual interface need, rather than trust center.

## 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 Trust center

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

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

## Minimal example

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

## Structured props

- `TidalTrustCenter.categories: ReadonlyArray<TidalTrustCategory>`: Required categories value accepted by this exported component.
- `TidalTrustCenter.categoryId: string | null`: Required category id value accepted by this exported component.
- `TidalTrustCenter.documents: ReadonlyArray<TidalTrustDocument>`: Required documents value accepted by this exported component.
- `TidalTrustCenter.onCategoryChange: (categoryId: string | null, event: MouseEvent<HTMLButtonElement>) => void`: Callback invoked when the category change interaction is proposed.
- `TidalTrustCenter.onQueryChange: (query: string, event: ChangeEvent<HTMLInputElement>) => void`: Callback invoked when the query change interaction is proposed.
- `TidalTrustCenter.query: string`: Required query value accepted by this exported component.
- `TidalTrustCenter.title: ReactNode`: Required title value accepted by this exported component.
- `TidalTrustCenter.allCategoriesButtonProps?: TrustButtonProps | undefined`: Optional all categories button props value accepted by this exported component.
- `TidalTrustCenter.allCategoriesButtonRef?: Ref<HTMLButtonElement> | undefined`: Optional all categories button ref value accepted by this exported component.
- `TidalTrustCenter.description?: ReactNode`: Optional description value accepted by this exported component.
- `TidalTrustCenter.emptyContent?: ReactNode`: Optional empty content value accepted by this exported component.
- `TidalTrustCenter.error?: ReactNode`: Optional error value accepted by this exported component.
- `TidalTrustCenter.headingLevel?: "h2" | "h3" | "h4" | "h5" | undefined` (default "h2"): Optional heading level value accepted by this exported component.
- `TidalTrustCenter.labels?: Partial<{ search: string; searchPlaceholder: string; categoryFilters: string; allCategories: string; documents: string; documentCount: string; updates: string; updated: string; version: string; format: string; openDocument: string; requestDocument: string; requestPending: string; restricted: string; readUpdate: string; reset: string; loading: string; empty: string; invalid: string; }> | undefined` (default {}): Optional labels value accepted by this exported component.
- `TidalTrustCenter.loading?: boolean | undefined` (default false): Optional loading value accepted by this exported component.
- `TidalTrustCenter.onDocumentRequest?: ((document: TidalTrustDocument & { access: "request"; }, event: MouseEvent<HTMLButtonElement>) => void) | undefined`: Callback invoked when the document request interaction is proposed.
- `TidalTrustCenter.onResetRequest?: ((event: MouseEvent<HTMLButtonElement>) => void) | undefined`: Callback invoked when the reset request interaction is proposed.
- `TidalTrustCenter.requestingDocumentId?: string | undefined`: Optional requesting document id value accepted by this exported component.
- `TidalTrustCenter.resetButtonProps?: TrustButtonProps | undefined`: Optional reset button props value accepted by this exported component.
- `TidalTrustCenter.resetButtonRef?: Ref<HTMLButtonElement> | undefined`: Optional reset button ref value accepted by this exported component.
- `TidalTrustCenter.searchProps?: TrustSearchProps | undefined`: Optional search props value accepted by this exported component.
- `TidalTrustCenter.searchRef?: Ref<HTMLInputElement> | undefined`: Optional search ref value accepted by this exported component.
- `TidalTrustCenter.status?: TidalTrustStatus | undefined`: Optional status value accepted by this exported component.
- `TidalTrustCenter.updates?: ReadonlyArray<TidalTrustUpdate> | undefined` (default []): Optional updates value accepted by this exported component.

## Complete usage example

[Source](https://tidalui.com/examples/trust-center.tsx) | [Manifest](https://tidalui.com/examples/trust-center.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 { useId, useMemo, useState } from "react";

import { TidalTrustCenter, type TidalTrustDocument } from "./components/ui/trust-center";

import "./components/ui/trust-center.css";

import "./components/ui/status-badge.css";



const tidalExampleStyles = ".tidal-trust-demo {\n  display: grid;\n  width: min(100%, 1160px);\n  min-width: 0;\n  gap: 16px;\n  margin-inline: auto;\n}\n\n.tidal-trust-demo-status,\n.tidal-trust-demo-detail {\n  margin: 0;\n  color: var(--t-muted);\n  font-size: 12px;\n  line-height: 1.5;\n  overflow-wrap: anywhere;\n}\n\n.tidal-trust-demo-status {\n  text-align: center;\n}\n\n.tidal-trust-demo-detail {\n  display: flex;\n  min-height: 44px;\n  gap: 6px 14px;\n  align-items: center;\n  justify-content: center;\n  flex-wrap: wrap;\n  padding: 10px 16px;\n  border: 1px solid var(--t-border);\n  border-radius: 12px;\n  background: var(--t-surface);\n  scroll-margin-block: 24px;\n  outline: none;\n}\n\n.tidal-trust-demo-detail:target,\n.tidal-trust-demo-detail:focus-visible {\n  border-color: var(--t-ink);\n  box-shadow: 0 0 0 3px var(--t-ring);\n}\n\n.tidal-trust-demo-detail strong {\n  color: var(--t-ink);\n}\n\n@media (max-width: 480px) {\n  .tidal-trust-demo-detail {\n    align-items: flex-start;\n    flex-direction: column;\n  }\n}";

const CATEGORIES = [
  { id: "security", label: "Security" },
  { id: "privacy", label: "Privacy" },
  { id: "operations", label: "Operations" },
] as const;

export function TrustCenterDemo({
  theme = "light",
  dir = "ltr",
}: {
  theme?: "light" | "dark";
  dir?: "ltr" | "rtl";
}) {
  const uid = useId().replace(/:/g, "");
  const policyId = `${uid}-sample-policy`;
  const [query, setQuery] = useState("");
  const [categoryId, setCategoryId] = useState<string | null>(null);
  const [requestedIds, setRequestedIds] = useState<readonly string[]>([]);
  const [status, setStatus] = useState(
    "Choose a document or request sample access.",
  );

  const documents = useMemo<readonly TidalTrustDocument[]>(
    () => [
      {
        id: "security-overview",
        title: "Security overview",
        categoryId: "security",
        description: "Encryption, access controls, and security reviews.",
        updated: "October 10, 2026",
        dateTime: "2026-10-10",
        format: "HTML",
        version: "2.1",
        searchTerms: ["controls", "safeguards"],
        access: "public",
        href: `#${policyId}`,
      },
      {
        id: "privacy-notice",
        title: "Privacy notice",
        categoryId: "privacy",
        description: "How account and usage data is handled.",
        updated: "October 7, 2026",
        dateTime: "2026-10-07",
        format: "HTML",
        access: "public",
        href: `#${policyId}`,
      },
      {
        id: "subprocessor-list",
        title: "Subprocessor list",
        categoryId: "operations",
        description: "Providers used to deliver the service.",
        updated: "October 3, 2026",
        dateTime: "2026-10-03",
        format: "CSV",
        version: "4",
        searchTerms: ["providers", "vendors"],
        access: "public",
        href: `#${policyId}`,
      },
      requestedIds.includes("audit-report")
        ? {
            id: "audit-report",
            title: "Sample assessment report",
            categoryId: "security",
            description: "Access requested.",
            updated: "September 28, 2026",
            dateTime: "2026-09-28",
            format: "PDF",
            access: "restricted",
          }
        : {
            id: "audit-report",
            title: "Sample assessment report",
            categoryId: "security",
            description: "Independent review summary and supporting evidence.",
            updated: "September 28, 2026",
            dateTime: "2026-09-28",
            format: "PDF",
            access: "request",
          },
      requestedIds.includes("continuity-plan")
        ? {
            id: "continuity-plan",
            title: "Continuity plan summary",
            categoryId: "operations",
            description: "Access requested.",
            format: "PDF",
            access: "restricted",
          }
        : {
            id: "continuity-plan",
            title: "Continuity plan summary",
            categoryId: "operations",
            description: "Backup and recovery procedures.",
            format: "PDF",
            access: "request",
          },
    ],
    [policyId, requestedIds],
  );

  return (
    <div className="tidal-trust-demo" data-theme={theme} dir={dir}>
      <TidalTrustCenter
        title="Trust center"
        description="Review sample documents, service notes, and access paths."
        categories={CATEGORIES}
        documents={documents}
        query={query}
        categoryId={categoryId}
        onQueryChange={(value) => {
          setQuery(value);
          setStatus(
            value
              ? `Showing matches for “${value}”.`
              : "Showing all sample documents.",
          );
        }}
        onCategoryChange={(value) => {
          setCategoryId(value);
          setStatus(
            value
              ? `Showing the ${value} category.`
              : "Showing all sample documents.",
          );
        }}
        onDocumentRequest={(document) => {
          setRequestedIds((current) => [...new Set([...current, document.id])]);
          setStatus(`Access requested for ${document.title}.`);
        }}
        onResetRequest={() => {
          setQuery("");
          setCategoryId(null);
          setStatus("Filters cleared.");
        }}
        status={{
          label: "Sample services available",
          status: "success",
          updated: "Checked October 15, 2026",
          dateTime: "2026-10-15",
        }}
        updates={[
          {
            id: "provider-review",
            title: "Provider list reviewed",
            description: "Provider change dates were reviewed.",
            date: "October 12, 2026",
            dateTime: "2026-10-12",
            status: "neutral",
            statusLabel: "Document",
            href: `#${policyId}`,
          },
          {
            id: "status-note",
            title: "Availability note added",
            description: "The September availability summary was published.",
            date: "October 8, 2026",
            dateTime: "2026-10-08",
            status: "success",
            statusLabel: "Update",
          },
        ]}
      />
      <p className="tidal-trust-demo-status" role="status" aria-live="polite">
        {status}
      </p>
      <section className="tidal-trust-demo-detail" id={policyId} tabIndex={-1}>
        <strong>Sample document destination</strong>
        <span>Fictional records only. No request is sent or stored.</span>
      </section>
    </div>
  );
}

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

Requires a title, unique categories/documents, controlled query/category values, and change callbacks. Documents use a public native link, consumer-owned request action, or restricted state; empty public href values remain valid native destinations. Public/update links preserve native modifiers, downloads, targets, explicit aria-disabled=false, refs, and caller handlers; resolved disabled links cannot navigate or call the supplied handler. Request/category/reset buttons preserve caller-first prevention, native props and refs, normalize aria-disabled=true, and default to type=button. The controlled native search preserves caller-first onChange prevention while the component owns and defensively strips value/defaultValue/type/readOnly/availability/children markup fields. Category controls form a named group. A synchronous accepted request that removes its focused action restores focus to the same available request, another request, the persistent search input, or root without scrolling, while unrelated focus is preserved. Loading/error/empty, pending request ID, exact supplied status and update metadata, h2-h5 heading level, root/search/all-category/reset refs and native attributes, localized labels, zero-valued ReactNode metadata, RTL, reduced motion and forced colors are supported. Consumers own every document, category, status, date, update, destination, access outcome, request, authentication, authorization, hosting, monitoring and persistence. The component fetches nothing, stores nothing, sends no request, and makes no security or compliance claim.
