primitives
Installation
SKILL.md
assistant-ui Primitives
Always consult assistant-ui.com/llms.txt for the latest API.
Primitives are composable, unstyled components that follow Radix style part composition: a .Root provides context, .PartName children read it, and every part accepts asChild to merge its behavior onto your own element instead of rendering a wrapper. They ship with no styles and no opinions about layout, only behavior: keyboard shortcuts, auto scroll, streaming state, focus management, and disabled logic. Wrap your tree in AssistantRuntimeProvider (or a nested AuiProvider) before using any of them.
References
- ./references/thread.md -- ThreadPrimitive: viewport, auto scroll, turn anchor, the messages iterator
- ./references/composer.md -- ComposerPrimitive: root, input, send, cancel, submit behavior
- ./references/message.md -- MessagePrimitive: the parts pipeline, tool resolution, attachments, quote, error
- ./references/action-bar.md -- ActionBarPrimitive and the ActionBarMorePrimitive overflow menu
- ./references/part-grouping.md -- GroupedParts, groupPartByType, chain of thought UI
- ./references/mentions.md --
@mentions,/slash commands, custom trigger matchers - ./references/composer-input.md -- headless input, input history, dictation, quoting, attachments
- ./references/messages.md -- editing, branching, message timing, virtualization, scrollbar, image parts
- ./references/suggestions.md --
Suggestions([...]), the suggestion adapter,ThreadPrimitive.Suggestions