Report a problem or share feedback← Catalog
Ai Approval
curatedtheme-awarefreesmoothui/ai-approval
Human-in-the-loop approval card where the chosen option expands to fill the card while the alternatives collapse away.
$
npx shadcn@latest add @smoothui/ai-approvalnpm 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
Similar
Compare all 4 →- Beam cardoc/beam-card♥ The user explicitly asked to keep Beam Card in the homepage examples while replacing the underwhelming loader. Retain its subtle beam emphasis.
- Approval Cardbeautifui/approval-cardHuman-in-the-loop 'agent wants to do X — approve?' card. Requires the Beautiful UI foundation.css, which redefines --accent (collides with shadcn).
- Insight Cardsbeautifui/insight-cardsPaged agent insights with scrub-ready live charts.