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

export default function ApprovalCardReviewPreview() {
  return (
    <div className="relative h-[360px] w-full max-w-lg">
      <ApprovalCard
        title="Publish the component update?"
        description="The agent has prepared the release and is waiting for your decision."
        status="pending"
        onApprove={() => {}}
        onRequestChanges={() => {}}
        onReject={() => {}}
        result="Publishing was approved."
      >
        <dl className="grid gap-1 text-xs">
          <div className="flex items-center justify-between gap-4 py-1">
            <dt className="text-muted-foreground">Release</dt>
            <dd className="font-mono text-foreground/80">approval-card</dd>
          </div>
          <div className="flex items-center justify-between gap-4 py-1">
            <dt className="text-muted-foreground">Checks</dt>
            <dd className="text-foreground/80">4 passed</dd>
          </div>
          <div className="flex items-center justify-between gap-4 py-1">
            <dt className="text-muted-foreground">Visibility</dt>
            <dd className="text-foreground/80">Public registry</dd>
          </div>
        </dl>
      </ApprovalCard>
    </div>
  );
}

Dependencies

More by sidiora-labs

View all
  • Preview Rail

    Preview Rail

    2
  • Expandable Tabs

    Expandable Tabs

    1
  • Morphing Modal

    Morphing Modal

    1
  • Not Found

    Not Found

  • Text Cascade

    Text Cascade

  • Smooth Scroll

    Smooth Scroll

  • Swap

    Swap

  • Motion Breadcrumb

    Motion Breadcrumb

More in Cards

View all
  • Statistics Card 7

    Statistics Card 7

    295
  • Course Design Cards

    Course Design Cards

    1.1K
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    89
  • The Item one

    The Item one

    3
  • Stats cards with links

    Stats cards with links

    81
  • Card

    Card

    56
  • Statistics Card 2

    Statistics Card 2

    269
  • Weather Card

    Weather Card

    55