Kokonut UI

AI Tool Approval

AI chats 24

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.1K
  • 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

    336
  • Aquarium Prompt

    Aquarium Prompt

    18
  • Agent Chat

    Agent Chat

    18
  • Attachments

    Attachments

    32
  • Color Picker

    Color Picker

    158
  • Message Thread

    Message Thread

    55
  • Commit

    Commit

    27
  • Chat Bubble

    Chat Bubble

    195