About
Human-in-the-loop question card an agent shows before acting: single and multi-select answers, a free-text option, paging between questions, keyboard navigation and a sent state.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Approval Card to your project and fits it to your theme.
Code
How Approval Card is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import ApprovalCard from "@/components/ui/approval-card";
export default function ApprovalCardDemo() {
return (
<div className="flex min-h-[520px] w-full items-center justify-center bg-background p-8">
<ApprovalCard
questions={[
{
q: "Which environment should I deploy to?",
type: "radio",
options: ["Staging only", "Staging, then production", "Production canary (5%)"],
},
{
q: "Which checks should run before release?",
type: "check",
options: ["Integration tests", "Database migration dry run", "Load test on checkout"],
},
{
q: "Who should approve the rollout?",
type: "radio",
options: ["Platform on-call", "Release manager", "No approval needed"],
},
]}
onSubmit={(answers) => console.log("answers", answers)}
/>
</div>
);
}
















