sidiora-labs

Approval Card

Cards

About

A card an AI agent uses mid-task to ask the user to approve, reject, request changes, or answer a short set of questions.

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";

const QUESTIONS = [
  {
    id: "scope",
    title: "How focused should the first release be?",
    options: [
      { value: "focused", label: "A focused starter set" },
      { value: "broad", label: "A broader collection" },
      { value: "flagship", label: "One flagship experience" },
    ],
    allowCustom: true,
    customPlaceholder: "Describe another scope…",
  },
  {
    id: "checks",
    title: "Which checks should block publishing?",
    description:
      "Select every check the agent must pass before it can continue.",
    multiple: true,
    options: [
      { value: "types", label: "Type safety" },
      { value: "accessibility", label: "Accessibility" },
      { value: "registry", label: "Registry validation" },
    ],
  },
  {
    id: "preserve",
    title: "Anything the agent should preserve?",
    allowCustom: true,
    customPlaceholder: "Add a final constraint…",
  },
];

export default function ApprovalCardQuestionPreview() {
  return (
    <div className="relative h-[470px] w-full max-w-lg">
      <ApprovalCard
        questions={QUESTIONS}
        status="pending"
        onSubmit={() => {}}
        result="Three responses sent to the agent."
      />
    </div>
  );
}

Dependencies

More by sidiora-labs

View all
  • Wave Slider

    Wave Slider

    6
  • Icon Accordion

    Icon Accordion

    6
  • Preview Rail

    Preview Rail

    5
  • Expandable Tabs

    Expandable Tabs

    3
  • Color List

    Color List

    3
  • Not Found

    Not Found

    2
  • Motion Breadcrumb

    Motion Breadcrumb

    2
  • Wallet Card

    Wallet Card

    2

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.1K
  • Statistics Card 7

    Statistics Card 7

    301
  • Stats cards with links

    Stats cards with links

    83
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    210
  • Statistics Card 2

    Statistics Card 2

    275
  • Card Studio

    Card Studio

    10
  • Weather Card

    Weather Card

    58
  • Statistics Card 10

    Statistics Card 10

    272