Kokonut UI

AI Tool Approval

AI chats 36

About

A chat UI card that asks the user to allow or deny an AI agent's tool call, with a hold-to-confirm step for destructive actions and a streaming output trace once approved.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds AI Tool Approval to your project and fits it to your theme.

Code

How AI Tool Approval is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import AIToolApproval from "@/components/ui/ai-tool-approval";

export default function AIToolApprovalDemo() {
  return (
    <div className="flex w-full items-center justify-center p-10">
      <AIToolApproval />
    </div>
  );
}

Dependencies

More by Kokonut UI

View all
  • Background Paths

    Background Paths

    6K
  • Shape Landing Hero

    Shape Landing Hero

    3.6K
  • Beams Background

    Beams Background

    3K
  • Bento Grid

    Bento Grid

    2.3K
  • v0 AI Chat

    v0 AI Chat

    2.2K
  • AI Voice Input

    AI Voice Input

    1.8K
  • Hand Writing Text

    Hand Writing Text

    1.3K
  • Action Search Bar

    Action Search Bar

    1.3K

More in AI chats

View all
  • AI Actions

    AI Actions

    371
  • AI Response

    AI Response

    16
  • Aquarium Prompt

    Aquarium Prompt

    199
  • Interactive LLM Token & Context Window Visualizer

    Interactive LLM Token & Context Window Visualizer

    23
  • Color Picker

    Color Picker

    239
  • AI SaaS Workflow Hero

    AI SaaS Workflow Hero

    25
  • Message Parts

    Message Parts

    5
  • Agent Chat

    Agent Chat

    21