Components
Render a subagent task row with elapsed time and the last nested tool while running. State-driven (completed / pending / interrupted). Self-contained port from 21st.dev Agent Elements.
npx shadcn@latest add https://21st.dev/r/21stdev/subagent-toolLoading preview...
import { SubagentTool } from "@/components/ui/subagent-tool";
export default function Demo() {
return (
<div className="flex items-center justify-center w-full min-h-screen bg-background p-8 overflow-hidden">
<div className="w-fit">
<SubagentTool state="interrupted" />
</div>
</div>
);
}