Skip to content

ApprovalCard

beta

Single approval request for the A2UI nodus:approval-card spec: agent sources, confidence, reasoning, consequences, and Approve / Reject with a decided state

Human-in-the-LoopInteractive/Storybook ↗
import { ApprovalCard } from "@danagraph/design-system/patterns"
Loading demo…

Props

titlerequired
Type stringDefault —

The action awaiting a decision; also the card's accessible name

reasoning
Type string[]Default —

One row per line of reasoning; section omitted when empty

consequences
Type string[]Default —

One row per consequence; section omitted when empty

confidence
Type { score: number; level?: string }Default —

Agent confidence, score 0-100

agentSources
Type string[]Default —

Agents that requested the action

decision
Type 'approve' | 'reject' | nullDefault —

Controlled decision; omit for uncontrolled use

onDecision
Type (decision: 'approve' | 'reject') => voidDefault —

Called when Approve or Reject is activated

approveLabel
Type stringDefault "Approve"

Label of the approve action

rejectLabel
Type stringDefault "Reject"

Label of the reject action

disabled
Type booleanDefault —

Disables both actions without recording a decision

semantictypebordersurface
Design Rationale

This component was designed to express:

Explore Related

Was this helpful?