Kokonut UI

AI Tool Approval

AI chats 39

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
  • Agent Chat

    Agent Chat

    21
  • AI Suggestions

    AI Suggestions

    27
  • AI Actions

    AI Actions

    372
  • Interactive LLM Token & Context Window Visualizer

    Interactive LLM Token & Context Window Visualizer

    30
  • Aquarium Prompt

    Aquarium Prompt

    223
  • Message Parts

    Message Parts

    11
  • AI SaaS Workflow Hero

    AI SaaS Workflow Hero

    37
  • AI Chat Composer

    AI Chat Composer

    22