Multi-step human-in-the-loop confirmation card with keyboard shortcuts and custom fallback input.
"use client"; import { ApprovalCard } from "@/components/compose/approval-card"; export function HumanGate() { return ( <ApprovalCard questions={[ { prompt: "How many variants should we launch?", options: ["Three (core line)", "Five (full suite)"], }, ]} onComplete={(answers) => console.log("Approved:", answers)} /> );}Add it with the ComposeUI CLI, or copy the source manually.
questionsApprovalQuestion[]Sequential decision prompts presented with option rows and index badges.
allowCustombooleanShows an inline fallback text input when preset options are skipped.
trueonComplete(answers: Record<number, string>) => voidFires after the user confirms the final step.
Updated December 2026