TidalUI

Tool call card preview

Show a tool request, its arguments, approval actions and result.

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/tool-call-card

Import components/ui/tidal.css, components/ui/tool-call-card.css. Wrap installed components in tidal-scope.

Preview

Tool call card component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/tool-call-card.css";
import{TidalToolCallCard}from"./components/ui/tool-call-card";
export default()=><div className="tidal-scope"><TidalToolCallCard status={"queued"} title={"Demo"} toolName={"Demo"}/></div>;

API and props

TidalToolCallCard.status (required)
TidalToolCallStatus

Required status value accepted by this exported component.

TidalToolCallCard.title (required)
ReactNode

Required title value accepted by this exported component.

TidalToolCallCard.toolName (required)
string

Required tool name value accepted by this exported component.

TidalToolCallCard.actions
ReadonlyArray<TidalToolCallAction> | undefined

Optional actions value accepted by this exported component.

TidalToolCallCard.actionsLabel
string | undefined

Optional actions label value accepted by this exported component.

TidalToolCallCard.announceStatus
boolean | undefined

Optional announce status value accepted by this exported component.

TidalToolCallCard.argumentsLanguage
string | undefined

Optional arguments language value accepted by this exported component.

TidalToolCallCard.argumentsText
string | undefined

Optional arguments text value accepted by this exported component.

TidalToolCallCard.defaultDetailsOpen
boolean | undefined

Optional default details open value accepted by this exported component.

TidalToolCallCard.detailsLabel
string | undefined

Optional details label value accepted by this exported component.

TidalToolCallCard.detailsOpen
boolean | undefined

Optional details open value accepted by this exported component.

TidalToolCallCard.error
ReactNode

Optional error value accepted by this exported component.

TidalToolCallCard.footer
ReactNode

Optional footer value accepted by this exported component.

TidalToolCallCard.headingLevel
2 | 3 | 4 | 5 | 6 | undefined

Optional heading level value accepted by this exported component.

TidalToolCallCard.onDetailsOpenChange
((open: boolean, event: MouseEvent<HTMLElement>) => void) | undefined

Callback invoked when the details open change interaction is proposed.

TidalToolCallCard.resultText
string | undefined

Optional result text value accepted by this exported component.

TidalToolCallCard.statusLabel
string | undefined

Optional status label value accepted by this exported component.

TidalToolCallCard.summary
ReactNode

Optional summary value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas