Components
Approval
A human-in-the-loop gate: the agent pauses and asks a person to approve, edit or reject an action before proceeding — non-negotiable in regulated flows. Resolves to an approved or rejected state.
Gate
Click Approve or Reject to resolve — the card records the decision.
Approval required
Auto-approve KYC case #4821 (low risk).
{
"risk": "low",
"confidence": 0.98,
"sanctions": false,
"pep": false
}
API
| Prop | Type | Default | Description |
|---|---|---|---|
action | string | required | The action being gated, shown to the reviewer. |
title | string | 'Approval required' | Card heading. |
detail | unknown | — | Optional payload rendered as a JSON block. |
editable | boolean | false | Show an Edit action alongside Approve / Reject. |
state | 'pending' | 'approved' | 'rejected' | 'pending' | Current decision (two-way, [(state)]). |
| Event | Type | Default | Description |
|---|---|---|---|
approve | void | — | Emitted when the reviewer approves. |
reject | void | — | Emitted when the reviewer rejects. |
edit | void | — | Emitted when the Edit action is pressed (if editable). |