AI Chat
The parts every AI block shares: message types that take the Vercel AI SDK’s useChat and UIMessage as they are, Markdown from a model drawn with safe links and no HTML while it streams, each word fading in as it arrives, a reply that leads with one line rolling through what the model is doing beside a ring that spins, then folds its thinking, tool calls and sources into “Used 2 tools in 3.4 s”, tool calls with their state, approval and details, tool results drawn as blocks, attached files, and numbered sources and citations.
Installation
Requires @dashboardblocks in the registries of your components.json (shadcn adds official directory namespaces automatically).
Use with Coding Agent
Paste this into Claude Code, Codex or Cursor. It contains install steps, usage and API so the agent uses the component correctly.
Use the "AI Chat" component (dashboardblocks/ai-chat) from its shadcn registry.1. Install it with: npx shadcn@latest add @dashboardblocks/ai-chat2. Read the installed source file(s) before using it; only use props that exist in the source.3. Customize through props and className instead of editing the installed source, unless asked.Files & dependencies
- registry/components/dashboardblocks/ai-message.ts→ @components/dashboardblocks/ai-message.ts
- registry/components/dashboardblocks/ai-sources.tsx→ @components/dashboardblocks/ai-sources.tsx
- registry/components/dashboardblocks/ai-markdown.tsx→ @components/dashboardblocks/ai-markdown.tsx
- registry/lib/dashboardblocks/markdown-fences.ts→ @lib/dashboardblocks/markdown-fences.ts
- registry/components/dashboardblocks/ai-parts.tsx→ @components/dashboardblocks/ai-parts.tsx
Looks similar, elsewhere
There is no screenshot of this item to compare yet.