PaceUI

  • Components
  • Blocks
  • Templates
  • Studio
  • Resources
Intro
  • Components
  • Installation
  • MCP
Agents
  • Chat Composer
  • Workflow Board
  • Thinking States
  • Audio Visualizer
  • Task Pipeline
  • Approval Card
  • Model Ability Selector
  • Model Selector
  • Response Writer
  • AI Suggestions
  • Token Counter
Crafts
  • All Crafts
  • Avatar Flight
  • Voice Record
  • Starfield Card
  • Destination Queue
  • Rolling Bento
  • Download Button
  • Cart Stepper
  • Heart Burst
  • Copy Bar
  • Generative Grid
  • Destination Card
  • Magnetic Button
  • Morphing Copy
  • Expanding Search
  • Metric Tracker
  • Tilt Card
  • Animated Stack
Charts
  • API Traffic
  • Weekly Traffic
  • Financial Performance
  • Channel Sales
  • Customer Growth
  • Customer Segments
  • Sales Overview
  • Traffic Distribution
  • Daily Orders
  • Acquisition Funnel
  • Weekly Attendance
  • Market Trends
  • Portfolio Overview
  • Instance Health
  • Resource Usage
  • SaaS Subscriptions
  • Database Performance
  • Model Usage
  • Spend Allocation
Motion
  • Accordion
  • Alert
  • Calendar
  • Checkbox
  • Collapsible
  • Combobox
  • Context Menu
  • Dropdown Menu
  • Empty
  • Hover Card
  • Input OTP
  • Menubar
  • Navigation Menu
  • Pagination
  • Progress
  • Radio Group
  • Scroll Area
  • Select
  • Sidebar
  • Slider
  • Switch
  • Tabs
  • Tooltip
  • Reveal Text
  • Scramble Text
  • Squash Text
  • Bouncing Text
  • Mouse Wave Text
  • Text Fall Button
  • Spring Button
  • Infinite Scroller
  • Fillable Button
  • Layered Stack
  • Gradient Shadow
  • Profile Peek
  • Flip Reveal
  • Reveal on Scroll
  • Swap
  1. Components
  2. Agents
PreviousNext

Approval Card

An AI agent approval card featuring an interactive hold-to-approve button, itemized action details, permission scope tags, and animated confirmation states.

When to use

  • Requiring human-in-the-loop confirmation before an autonomous agent executes sensitive or destructive actions (such as issuing refunds, deleting records, or running billing commands).
  • Preventing accidental one-click triggers with an intentional press-and-hold interaction ("Hold to approve").
  • Presenting itemized context, reasonings, and scoped permission tags clearly to the reviewer.

When not to use

  • Low-risk read-only queries where instant responses are expected without gating.
  • Complex multi-step wizard questionnaires; use standard form dialogs instead.

API Reference

AgentApprovalCardProps

PropTypeDefaultDescription
titlestring—The headline action being requested (e.g., "Refund 3 orders").
amountstring—Optional numeric or monetary amount displayed alongside the title.
agentNamestring"Ops agent"Name of the requesting AI agent.
agentRolestring"wants to"Action descriptor following the agent's name.
agentAvatarUrlstring—Optional custom avatar image source for the agent.
status"pending" | "approved" | "rejected""pending"Controlled status of the card.
itemsAgentApprovalItem[][]List of itemized records or orders being affected.
tagsAgentApprovalBadge[][]Permission, category, or policy tags for contextual boundaries.
holdDurationMsnumber1500Duration in milliseconds required to hold before approving.
allowRevertbooleantrueAllows resetting an approved or rejected card back to pending state.
onApprove() => void—Callback fired when the hold-to-approve interaction successfully completes.
onReject() => void—Callback fired when the deny button is clicked.
onReset() => void—Callback fired when reset is clicked in a completed state.

HoldToApproveButtonProps

PropTypeDefaultDescription
onApprove() => void—Callback triggered upon holding for the full duration.
holdDurationMsnumber1500Required hold duration in milliseconds.
status"pending" | "approved" | "rejected""pending"Current state affecting button appearance and interaction.
disabledbooleanfalseWhether button interaction is disabled.
Task PipelineModel Ability Selector

PaceUI

Animated blocks, components, and templates for Next.js and TanStack Start. Built with Motion and shadcn - clean code you own.

GitHubTwitterDiscord

Products

BlocksComponentsTemplatesCraftsTanStack ChartsMCP ServerStarter KitsStyleX Components

Resources

DocumentationMotion ComponentsGSAP AnimationsNative AIBlogChangelog

Pricing & Account

PricingManage AccountLicensesAPI KeysAffiliate Program

Company

Contact UsDiscord CommunityPrivacy PolicyTerms of Service

© 2026 PaceUI. All rights reserved. Built by indie developer, Denish

PACEUI

GitHub
Release Botwants to merge
Needs approval
Merge 3 pull requests3 PRs
PR-342feat(auth): add OAuth PKCE flow
packages/auth · 4 files
+342 -48
PR-345fix(router): prevent race condition on popstate
packages/router · 2 files
+56 -12
PR-349refactor(core): migrate logger to trace API
packages/core · 5 files
+189 -95
acme/webAll CI passedready-to-merge