TidalUI

Approval queue preview

Review and decide submitted requests from one filterable queue.

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/approval-queue

Import components/ui/tidal.css, components/ui/approval-queue.css. Wrap installed components in tidal-scope.

Preview

Approval queue component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/approval-queue.css";
import{TidalApprovalQueue}from"./components/ui/approval-queue";
export default()=><div className="tidal-scope"><TidalApprovalQueue onSelectionChange={() => {}} requests={[{id:"example",title:"Demo",requester:"value",submitted:"value",state:"pending"}]} selectedId={"example"}/></div>;

API and props

TidalApprovalQueue.onSelectionChange (required)
(id: string, event: MouseEvent<HTMLButtonElement>) => void

Callback invoked when the selection change interaction is proposed.

TidalApprovalQueue.requests (required)
ReadonlyArray<TidalQueuedApproval>

Required requests value accepted by this exported component.

TidalApprovalQueue.selectedId (required)
string | null

Required selected id value accepted by this exported component.

TidalApprovalQueue.description
ReactNode

Optional description value accepted by this exported component.

TidalApprovalQueue.disabled
boolean | undefined

Optional disabled value accepted by this exported component.

TidalApprovalQueue.empty
ReactNode

Optional empty value accepted by this exported component.

TidalApprovalQueue.filter
TidalQueueFilter | undefined

Optional filter value accepted by this exported component.

TidalApprovalQueue.labels
Partial<{ all: string; pending: string; resolved: string; list: string; details: string; review: string; select: string; noMatch: string; invalid: string; outside: string; }> | undefined

Optional labels value accepted by this exported component.

TidalApprovalQueue.onDecision
((id: string, decision: "approve" | "reject", event: MouseEvent<HTMLButtonElement>) => void) | undefined

Callback invoked when the decision interaction is proposed.

TidalApprovalQueue.onFilterChange
((filter: TidalQueueFilter, event: MouseEvent<HTMLButtonElement>) => void) | undefined

Callback invoked when the filter change interaction is proposed.

TidalApprovalQueue.title
ReactNode

Optional title value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas