design-infraGitHub
Report a problem or share feedback← Catalog

Ai Approval

curatedtheme-awarefree

smoothui/ai-approval

Human-in-the-loop approval card where the chosen option expands to fill the card while the alternatives collapse away.

state · press — subtledrop-inRefinedTechnical
$npx shadcn@latest add @smoothui/ai-approval

npm deps: lucide-react, motion

Our notes

Human-in-the-loop approval card: the chosen option expands to fill the card and the alternatives collapse away, so the decision reads as final; destructive options get bg-destructive/10. All shadcn tokens (bg-background, border-border, text-muted-foreground) and useReducedMotion throughout — the free, theme-aware alternative to beautifui/approval-card (no foundation.css --accent clash). Pass resolvedId when replaying a transcript.
Source
SmoothUI
Kind
component
Categories
agent-ui
Use as
drop-in — replaces your component
Applies to
agent-uicard
Motion
on state, press · subtle · motion · medium cost · respects reduced motion
Tags
ai, approval, human-in-the-loop, confirm, agent, decision, spring, complexity-medium, reduced-motion
Licence
MIT ("MIT License — Copyright (c) 2024 Eduardo Calvo", github.com/educlopez/smoothui).
Live demo
smoothui.dev
Docs
smoothui.dev