AI & Agents
Approval Card
The human-in-the-loop gate: what the agent wants to do, how risky it is, approve or reject.
Usage
Installation
npm install @wunderui/reactThen import what you need:
import { ApprovalCard } from "@wunderui/react"Examples
Inline, low risk
The default: what will run sits behind a disclosure.
Dialog with a diff
kind="dialog-diff" shows the edit directly and offers Allow once, Always allow or Reject.
Permission request in an approval
An Approval Card of kind permission: the scopes and their countdown live in a ScopeList.
High cost
kind="high-cost" adds an amber banner with the estimate and the budget, and a cheaper alternative.
In context
How the component is used inside real screens — the same compositions as the Usage section of the Figma page.
Budget & recovery
Spend, a failed run and an approval request side by side.