Skip to content
Get Pro

Plan Approval Card

A proposed plan with clear steps and controls to edit, cancel, or start the work.

Loading component preview…

Installation

Add the component source directly to your project.

pnpm dlx shadcn@latest add https://pastaui.com/r/plan-approval-card.json

API reference

Plan Approval Card

Plan Approval Card properties
PropTypeDefaultDescription
PlanResearchCardcomponentResearching variant, imported from components/ai/plan-research-card.
progress / searchCountnumberResearch variant: progress from 0–100 and number of searches performed.
statusTextstringResearch variant: current activity or stopped-state message.
onUpdate / onStop() => voidResearch variant: update and stop callbacks.
steps[].statuspending | running | completeResearch variant: controls each step indicator.
titlestringNames the proposed task.
stepsPlanApprovalStep[]Ordered steps with a stable id and label. Start is disabled for an empty plan.
onEdit() => voidOpens your plan editor.
onCancel() => voidCancels the proposed plan.
onStart() => voidApproves and starts the plan.
disabledbooleanfalseDisables all three actions.
countdownSecondsnumberOptional remaining seconds displayed inside Start. Controlled by the parent; never automatically starts the plan.
countdownDurationnumber60Total countdown duration used to draw the remaining-time ring.