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.

Usage docs and preview are being generated by the coding agent. Registry metadata is shown meanwhile.
building preview…
The live preview has not been built yet.
See how it was built

Installation

pnpm dlx shadcn@latest add @dashboardblocks/ai-chat

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.

prompt.md
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
dependenciesmarked@^18.1.0remend@^1.4.0
registryDependenciesattachmentbuttonhttps://www.dashboardblocks.com/r/radix/agent-ring.jsonhttps://www.dashboardblocks.com/r/radix/disclosure.jsonhttps://www.dashboardblocks.com/r/radix/format.jsonhttps://www.dashboardblocks.com/r/radix/highlighted-code.jsonhttps://www.dashboardblocks.com/r/radix/link.jsonhttps://www.dashboardblocks.com/r/radix/rolling-text.jsonhttps://www.dashboardblocks.com/r/radix/table.jsonhttps://www.dashboardblocks.com/r/radix/text-change.json

Looks similar, elsewhere

There is no screenshot of this item to compare yet.