Ashish Sharma

Tool Approval

Component

About

A human-in-the-loop approval card for agent tools. Shows the exact command and what it will touch. Allow once, always allow or deny, with Esc to deny, and the card settles into a clear result. From Caliper UI (caliperui.site).

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

Code

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

Usage.tsx

import { ToolApproval } from "@/components/ui/tool-approval";

export default function Demo() {
  return (
    <div className="flex min-h-[520px] items-center justify-center bg-background p-6">
      <ToolApproval />
    </div>
  );
}

More by Ashish Sharma

View all
  • Perspective Gallery

    Perspective Gallery

    41
  • Animated Sidebar

    Animated Sidebar

    12
  • Glow Ring

    Glow Ring

    10
  • Otp Input

    Otp Input

    10
  • Expandable Tabs

    Expandable Tabs

    8
  • Bento Features

    Bento Features

    5
  • Notification Stack

    Notification Stack

    5
  • Spotlight Pricing

    Spotlight Pricing

    2

Explore more

Part of Caliper UI — browse the full library on 21st.dev.