Skip to content
↑↓ to navigate↵ to openesc to close

Menu

Approval Card

Questions

ApprovalCard.vue

How focused should the first release be?

1/3

Review and Approve

ApprovalCard.vue

Publish the component update?

Input required

The agent has prepared the release and is waiting for your decision.

Release
approval-card
Checks
4 passed
Visibility
Public registry

API Reference

title?
string
Default—
description?
string
Default—
questions?
ApprovalQuestion[]
Default[]
status?
ApprovalCardStatus
Defaultpending
v-model:answers?
ApprovalAnswers
Default—
defaultAnswers?
ApprovalAnswers
Default{}
v-model:step?
number
Default—
defaultStep?
number
Default0
@submit?
(value: ApprovalAnswers) => void
Default—
@approve?
() => void
Default—
@reject?
() => void
Default—
@request-changes?
() => void
Default—
@dismiss?
() => void
Default—
approveLabel?
string
Default—
submitLabel?
string
Default—
result?
string
Default—
labels?
Labels

Override any built-in string.

Default—
class?
string
Default—
@answers-change?
(value: ApprovalAnswers) => void
Default—
@step-change?
(value: number) => void
Default—
#default?
slot
Default—
#title?
slot
Default—
#description?
slot
Default—
#approveLabel?
slot
Default—
#submitLabel?
slot
Default—
#result?
slot
Default—

Install

Add it with your package manager, or copy the source manually.

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/approval-card

Import the shared styles once in your application.

TSUsage
import ApprovalCard from '@/components/beui/agents/ApprovalCard.vue'
import '@/components/beui/styles.css'

Composition

Place the approval surface inside the message that pauses the agent run.

Message
└── MessageContent
    └── ApprovalCard

Note: Tool Approval handles the narrower case of one tool permission. Message places the decision inside the conversation history. Todo List shows which planned work is paused by the decision.

How it works

Human-in-the-loop work is a temporary transfer of control. The card should state the decision clearly, collect only the required input, and return a durable answer to the paused agent run.

Also on React Native. Swipeable questions, or a review to approve.(opens in a new tab)

Updated