design-infraGitHub
Report a problem or share feedback← Catalog

Ai Tool Call

curatedtheme-awarefree

smoothui/ai-tool-call

Collapsible tool invocation whose status badge is one ring that evolves — breathing, spinning, then drawing a check or a cross.

state — subtledrop-inRefinedTechnical
$npx shadcn@latest add @smoothui/ai-tool-call

npm deps: lucide-react, motion

Our notes

Collapsible tool-invocation row (name, summary, args/result panel) whose status ring breathes while pending, spins while running, then draws a check or cross. Chrome is theme tokens; the success/error ring colours are fixed oklch green/red — swap for your semantic tokens if the design system defines them. Status is also announced via sr-only text. Pairs with smoothui/ai-task-list.
Source
SmoothUI
Kind
component
Categories
agent-ui
Use as
drop-in — replaces your component
Applies to
agent-uiaccordion
Motion
on state · subtle · motion + svg · medium cost · respects reduced motion
Tags
ai, tool, function-call, agent, status, collapsible, 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