About
A chat-turn block that shows who spoke, what they said, and its cost (tokens/duration), with optional reasoning, result and action slots for building an agent/assistant conversation thread.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Turn to your project and fits it to your theme.
Code
How Turn is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import Turn from "@/components/ui/turn";
export default function TurnStreamingDemo() {
return (
<div className="w-full max-w-xl mx-auto flex flex-col gap-6 p-6 bg-background text-foreground">
<Turn who="Agent" tokens={612} locale="en-GB" streaming>
Sixty lines go. This rewrites the file in place, so I need permission
</Turn>
</div>
);
}








