TidalUI

Agent run preview

Follow an agent's steps, inspect details and handle cancellation or retry.

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/agent-run

Import components/ui/tidal.css, components/ui/agent-run.css. Wrap installed components in tidal-scope.

Preview

Agent run component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/agent-run.css";
import{TidalAgentRun}from"./components/ui/agent-run";
export default()=><div className="tidal-scope"><TidalAgentRun status={"queued"} steps={[{id:"example",label:"Demo",status:"pending"}]} title={"Demo"}/></div>;

API and props

TidalAgentRun.status (required)
TidalRunStatus

Required status value accepted by this exported component.

TidalAgentRun.steps (required)
ReadonlyArray<TidalRunStep>

Required steps value accepted by this exported component.

TidalAgentRun.title (required)
ReactNode

Required title value accepted by this exported component.

TidalAgentRun.announceUpdates
boolean | undefined

Optional announce updates value accepted by this exported component.

TidalAgentRun.cancelButtonProps
Omit<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "type" | "children"> | undefined

Optional cancel button props value accepted by this exported component.

TidalAgentRun.children
ReactNode

Optional children value accepted by this exported component.

TidalAgentRun.description
ReactNode

Optional description value accepted by this exported component.

TidalAgentRun.disabled
boolean | undefined

Optional disabled value accepted by this exported component.

TidalAgentRun.elapsedText
ReactNode

Optional elapsed text value accepted by this exported component.

TidalAgentRun.emptyMessage
ReactNode

Optional empty message value accepted by this exported component.

TidalAgentRun.headingLevel
"h2" | "h3" | "h4" | "h5" | "h6" | undefined

Optional heading level value accepted by this exported component.

TidalAgentRun.onCancel
((event: MouseEvent<HTMLButtonElement>) => void) | undefined

Callback invoked when the cancel interaction is proposed.

TidalAgentRun.onRetry
((event: MouseEvent<HTMLButtonElement>) => void) | undefined

Callback invoked when the retry interaction is proposed.

TidalAgentRun.retryButtonProps
Omit<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "type" | "children"> | undefined

Optional retry button props value accepted by this exported component.

TidalAgentRun.statusNote
ReactNode

Optional status note value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas