Components for conversational AI.
45 open-source components for ChatGPT-style chat UIs: messages, reasoning, tool calls, streaming and citations, on React, Vue, Svelte and Solid. Wired to the AI SDK, free with an account.
Every AI component
45 components.
- MessageChat

- ChatChat

- Prompt InputChat

- ReasoningAgent steps

- ToolAgent steps

- Code BlockAnswers & output

- SuggestionChat

- SourcesAnswers & output

- Inline CitationAnswers & output

- AttachmentChat

- Model SelectorChat

- AgentAgent steps

- ArtifactCanvas & previews

- CanvasCanvas & previews

- Sandbox RunAgent steps

- TerminalAgent steps

Or describe it. With Pro, your AI agent picks the component you describe and installs it on your stack.
Get ProPricing
Every AI component, one prompt away, with Pro
Your AI agent installs any of the 45 AI components, and every block, example and icon, with every Pro plan.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
FAQ
Frequently asked questions
What the AI components are, how they wire to the AI SDK and stream, the frameworks they run on, and what's free.
They are the 45 components on shadcn.io for interfaces that talk to a model: the chat (Message, Bubble, Prompt Input, Suggestion, Attachment), what the agent does on the way (Reasoning, Tool, Plan, Task, Terminal, Subagent), what it answers with (Sources, Inline Citation, Code Block, Commit, Test Results), voice (Speech Input, Transcription, Persona) and the canvas it works on (Canvas, Artifact, Web Preview). They are grouped the same way here: Chat (14), Agent steps (12), Answers & output (10), Voice & audio (6) and Canvas & previews (3).
It replaces them. shadcn/ui rebuilt AI SDK Elements as patterns on two components, Trace and Code Block, and shadcn.io adds the elements shadcn/ui didn't rebuild: Agent, Artifact, Canvas, Commit, the voice components and the rest. Each keeps AI SDK Elements' part names and props where they read well, and the page of each element it replaces has a Migrating from AI SDK Elements section that says what to change in your components/ai-elements file.
Chat (the thread, Message Scroller, Message and Bubble), Prompt Input, Reasoning for the model's thinking and Tool for its tool calls. Add Sources and Inline Citation when it searches, Suggestion for follow-ups, Attachment for files and Model Selector to switch models. Chat's page puts them together.
A component installs a file of its own (Message, Canvas, Commit). A pattern (Chat, Reasoning, Tool, Plan and the other agent steps) is a page with no file of its own: its command installs the parts it's built from, Trace and Code Block mostly, and the code to copy is its demo's, so the composition is yours to edit.
Open the component's page and copy its install command: `npx shadcn@latest add` with the component's URL for your React library, or your framework's CLI on Vue, Svelte and Solid. It writes the file into your components folder with the parts it uses, and the page's demos show how to put it together.
Yes. Each page whose component shows AI SDK data has an AI SDK section: render `useChat`'s messages part by part, reasoning parts in Reasoning, tool parts in Tool, sources in Sources, generated images in Generated Image, transcripts in Transcription. The components take plain props, so another runtime (a raw provider SDK, LangChain) feeds them the same way.
Every component reads your theme's tokens (`--primary`, `--muted`, `--border`), so it follows your colors, radius and dark mode, and takes a `className` merged with `cn`. Code Block highlights its code with TanStack Highlight.
The page of each element it replaces has a Migrating from AI SDK Elements section: a prompt to paste into your coding agent, per React library, that rebuilds your components/ai-elements file on these components with every export's name and props kept, so the code that uses it keeps working.
Yes. Reasoning reads Thinking while the model thinks, streams the thinking under it, then folds shut as Thought when the answer starts. Tool is plain while a call runs and opens onto its output once it arrives. A running line's title shimmers, and Prompt Input's send button turns into a stop button while the reply streams.
The components are display: stopping is your chat's. While `useChat`'s status is submitted or streaming, Prompt Input's send button is a Stop button that calls `stop()`; Enter does nothing until the reply is done.
Message doesn't render markdown itself: the reply is formatted by your page (with the markdown renderer you already use) and set in a ghost Bubble, so a generated answer with emphasis and code stays unframed while a person's message stays a plain bubble. Code fences go in Code Block.
Tool is one Trace line per call, saying what the agent ran or read ("Ran git status --short"): plain while the call runs, then a click away from its output in a Code Block, and a failed call keeps its error. Confirmation asks before a tool runs, with Deny and Approve, and Queue lists the agent's todos.
React on Base UI, React Aria, Ark UI and Radix UI, and Vue, Svelte and Solid, which are built from the Ark UI version. Chat is React-only on the ports for now: it's built on Message Scroller, which hasn't been ported yet.
No. Canvas draws its flow without React Flow, Persona animates without Rive, Audio Player and Video Player keep their controls without media-chrome, and Speech Input listens with the browser's own Web Speech API. That's what lets them run on Vue, Svelte and Solid too.
Yes. Every component has keyboard support, focus rings, ARIA roles and right-to-left layouts on every framework, and a running line's shimmer and animations stop for readers who ask for reduced motion.
Yes, all 45. Every demo is open to try, and seeing the code or installing a component takes a free account, one tap with Google or GitHub. Free for personal and commercial projects.
Pro is the site's paid plan: 6,000+ blocks, the Pro backgrounds, buttons, shaders and text effects, and the MCP server, so your agent in Claude Code, Claude Desktop, ChatGPT and OpenCode or another client installs any component you describe from a prompt. The AI components stay free.
4.9 out of 5 from 150+ developers
Every AI component. One prompt away.
45 AI components, free with an account. With Pro, your AI agent installs them, and every block and icon, from a prompt.
Get Pro
