What problem does it solve?
The primitives provide a consistent, customizable set of React components to assemble chat UIs without reinventing core UI elements, saving time and ensuring visual coherence across a product.
Core Features & Use Cases
- ThreadPrimitive, ComposerPrimitive, MessagePrimitive, and ActionBarPrimitive give a modular foundation for building chat interfaces with predictable behavior and styling.
- References and example usage guide developers on composing messages, threads, and toolbars, enabling rapid prototyping and production-ready integrations.
- Use Case: Create a chat window with a thread viewport, message rendering, and a functional composer to collect user input and display assistant responses.
Quick Start
Import the primitives from @assistant-ui/react and render a basic ThreadPrimitive with a Composer to start a minimal chat UI.