TidalUI

Trust center preview

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

pro · Blocks · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

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

Import components/ui/tidal.css, components/ui/trust-center.css. Wrap installed components in tidal-scope.

Preview

Trust center component preview

Open interactive preview

Minimal example

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>;

API and props

TidalTrustCenter.categories (required)
ReadonlyArray<TidalTrustCategory>

Required categories value accepted by this exported component.

TidalTrustCenter.categoryId (required)
string | null

Required category id value accepted by this exported component.

TidalTrustCenter.documents (required)
ReadonlyArray<TidalTrustDocument>

Required documents value accepted by this exported component.

TidalTrustCenter.onCategoryChange (required)
(categoryId: string | null, event: MouseEvent<HTMLButtonElement>) => void

Callback invoked when the category change interaction is proposed.

TidalTrustCenter.onQueryChange (required)
(query: string, event: ChangeEvent<HTMLInputElement>) => void

Callback invoked when the query change interaction is proposed.

TidalTrustCenter.query (required)
string

Required query value accepted by this exported component.

TidalTrustCenter.title (required)
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

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

Optional labels value accepted by this exported component.

TidalTrustCenter.loading
boolean | undefined

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

Optional updates value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas