Skip to content
Cynco UI

AI

Confirmation

An approval request for a tool call, built on Alert.

import { Confirmation } from "@cynco-labs/ui/ai";

Example

Use

When the agent needs a yes/no before acting (deleting, posting).

Props

state (AI SDK tool state), approval; ConfirmationTitle › ConfirmationRequest / ConfirmationAccepted / ConfirmationRejected; ConfirmationActions › ConfirmationAction.

Notes

Each child renders only in its matching state.

Source Demo source Markdown