primitives
Unstyled, composable chat UI components following Radix UI patterns for assistant-ui.
- Eight core primitives cover threads, messages, composer input, action bars, branch picking, and attachments with granular sub-parts for full customization
- Use
AuiIffor conditional rendering based on thread state, message role, branch count, and running status - Content parts support text, images, tool calls, and reasoning blocks with custom component mapping
- Primitives require
AssistantRuntimeProvidercontext and ship unstyled; apply your own Tailwind or CSS classes for styling
assistant-ui Primitives
Always consult assistant-ui.com/llms.txt for latest API.
Composable, unstyled components following Radix UI patterns.
References
- ./references/thread.md -- ThreadPrimitive deep dive
- ./references/composer.md -- ComposerPrimitive deep dive
- ./references/message.md -- MessagePrimitive deep dive
- ./references/action-bar.md -- ActionBarPrimitive deep dive
Import
More from assistant-ui/skills
assistant-ui
Guide for assistant-ui library - AI chat UI components. Use when asking about architecture, debugging, or understanding the codebase.
1.8Kstreaming
Guide for assistant-stream package and streaming protocols. Use when implementing streaming backends, custom protocols, or debugging stream issues.
1.5Ktools
Guide for tool registration and tool UI in assistant-ui. Use when implementing LLM tools, tool call rendering, or human-in-the-loop patterns.
1.5Kruntime
Guide for assistant-ui runtime system and state management. Use when working with runtimes, accessing state, or managing thread/message data.
1.4Kthread-list
Guide for multi-thread management in assistant-ui. Use when implementing thread lists, switching threads, or managing conversation history.
1.4Ksetup
Setup and configure assistant-ui in a project. Use when installing packages, configuring runtimes, setting up chat UI, or troubleshooting setup issues.
1.4K