theshanelevine

Approval Card

AI chats 74

About

A human-in-the-loop approval card where an AI agent asks one multiple-choice question at a time, with radio/checkbox options, a custom answer field, a dot pager, and a confirmation 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 Default() {
  return (
    <div className="flex min-h-[320px] w-full items-center justify-center rounded-window bg-canvas p-6">
      <ApprovalCard />
    </div>
  );
}

More by theshanelevine

View all
  • Loading State

    Loading State

    940
  • Streaming Text

    Streaming Text

    484
  • Thinking

    Thinking

    157
  • Records Table

    Records Table

    111
  • Chat Panel

    Chat Panel

    39
  • Recommendation Card

    Recommendation Card

    4
  • Filter Table

    Filter Table

    2
  • Code Block

    Code Block

    1

More in AI chats

View all
  • AI Actions

    AI Actions

    317
  • Agent Chat

    Agent Chat

    17
  • Approval Card

    Approval Card

    12
  • Message

    Message

    48
  • Color Picker

    Color Picker

    73
  • Modal Card

    Modal Card

    98
  • Ask Bar

    Ask Bar

  • AI Task List

    AI Task List

    158