Kokonut UI

AI Tool Approval

AI chats 31

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

    5.9K
  • Shape Landing Hero

    Shape Landing Hero

    3.6K
  • Beams Background

    Beams Background

    2.9K
  • Bento Grid

    Bento Grid

    2.2K
  • v0 AI Chat

    v0 AI Chat

    2.2K
  • AI Voice Input

    AI Voice Input

    1.7K
  • 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

    351
  • Aquarium Prompt

    Aquarium Prompt

    113
  • Agent Chat

    Agent Chat

    21
  • Message With Header And Delivery Status

    Message With Header And Delivery Status

    60
  • Research Report

    Research Report

    7
  • Tool Web Fetch

    Tool Web Fetch

    4
  • Color Picker

    Color Picker

    201
  • Suggestions

    Suggestions

    40