Tool Call Collapsed

Compact collapsed tool call row with a rotating chevron and monospace tool name that expands to show its details. Keeps agent traces tidy inside chat threads.

src/registry/ui/tool-call-collapsed.tsx/r/tool-call-collapsed.json

Installation#

bash
npx shadcn@latest add @minidev/tool-call-collapsed

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/tool-call-collapsed.json

Usage#

tsx
import { ToolCallCollapsed } from "@/components/ui/tool-call-collapsed"

export function Example() {
  return <ToolCallCollapsed />
}

API reference#

ToolCallCollapsed props
PropTypeDefault
name*string-
childrenReact.ReactNode-
classNamestring-

* required

Dependencies#

npm

lucide-react

Built from

No other MiniDev files
All AI chat UI components for React