AI chat UI components for React
Free AI chat UI components for React: message threads, streaming text, prompt input with attachments, tool calls, reasoning blocks, citations and model picker.
Building an AI product means building a lot of interface that did not exist a few years ago: streaming messages, tool calls that can be expanded, reasoning that can be hidden, citations, token usage and a composer that takes files.
These components are provider agnostic. They render state you pass in, so they work with any model API or SDK, and the ai-chat guide shows how to wire them to a streaming response.
Components 33
Blocks and full pages 1
Frequently asked questions
Do these work with the Vercel AI SDK or OpenAI?
Yes. They are presentational components, so you pass messages and streaming state from whichever SDK or fetch call you use.
How do I stream a response into the UI?
Read the response body with a stream reader and append each chunk to the last message. The streaming message component shows a caret while text arrives.
Can I show tool calls and reasoning?
Yes. Tool call cards show arguments, status and results, and the reasoning block collapses long thinking by default.