Plan Card

Review a structured plan and approve or reject it explicitly.

Plan Card

Default

A plan remains pending until the consumer changes its status. View plan and more tasks expand the same task list through v-model:expanded; the expanded action reads Hide Plan. Use approve or reject to connect your execution policy. Approval reveals a green confirmation and an animated check, while tasks retain their own status. Download exports the provided plan text; approval never starts a service inside the component.

Automatic approval

Set auto-approve to show a circular countdown and emit approve when it finishes. Click the countdown to cancel it. Manual approval, rejection, disabling and unmounting stop the timer. The application owns status and execution; the component does not call services.

API

PROPS

Property
Type
Description
default
Example
More
auto-approve
Number
Automatic approval delay in seconds; 0 disables it. Cancelling stops the timer without rejecting the plan. Configuration or plan changes restart it.
0
title
String
Heading text; process lists use a localized fallback.
''
description
String
Supporting plan text.
—
tasks
[]
Tasks with stable ids, status and optional progress.
[]
content
String
Additional plan text included in the download; View plan does not reveal it.
—
v-model:expanded
Boolean
Controlled task list disclosure; View plan and more tasks share this state.
false
status
'pending' | 'approved' | 'rejected'
Controlled process or review state.
pending
disabled
Boolean
Disable component actions.
false

EVENTS

Event
Type
Description
default
Example
More
cancel-auto-approve
() => void
The user cancelled the automatic approval countdown.
—
—
auto-approve
() => void
The countdown requests approval and also emits approve.
—
—
update:expanded
(value: boolean) => void
Disclosure toggle requested.
—
—
approve
() => void
Approve the pending plan.
—
—
reject
() => void
Reject the proposed changes or plan.
—
—
download
() => void
Download action requested; image results provide their URL.
—
—

SLOTS

Slot
Description
default
Example
More
default
Always-visible supplementary content, independent of task disclosure.
—
—
actions
Customize the action row.
—
—
Last Updated: 2026-10-28, 06:17:56 UTC
Copied