easeUI

Tool Approval

A card for an agent action waiting on approval, with Approve and Deny that collapse into a single status pill once resolved.

Run a shell command

rm -rf dist/ && npm run build

Installation

$ bunx --bun shadcn add @easeui/tool-approval

API reference

PropTypeDefaultDescription
titleReactNode-What the agent wants to do.
description?any-The exact command, file path, or other detail worth reading before approving.
status?"pending" | "approved" | "denied"pendingDefault "pending". Acting on the request is up to the caller: set this once onApprove or onDeny fires.
onApprove?(() => void)--
onDeny?(() => void)--
approveLabel?stringApprove-
denyLabel?stringDeny-
className?string--

Updated