Salmon UI Chat documentation
Every page below embeds live demos; each demo also has a standalone route.
Components
- Conversation
A chat between people and bots - controlled or uncontrolled messages, users and avatars, a composer that sends on Enter, streamed bot replies from an adapter, typing indicators, timestamps, date separators, templates and an accessible APG Feed.
- AI assistant
Conversation with variant="assistant" - a provider-agnostic adapter that streams text, reasoning and tool parts, Stop, a pending skeleton, prompt suggestions, regenerate with response alternatives, feedback, prompt and response toolbars, dictation and an application Markdown renderer.
- Conversation actions and attachments
Message actions (copy, reply, pin, delete and custom items), replies with quoted previews, the pinned bar, forwarded labels, delivery status with retry, quick replies, @ mentions and attachments through an upload transport.
- Conversation history and scrolling
Virtualized long histories, older messages loaded on demand with a stable scroll position, auto-scroll modes, the jump-to-latest button with an unread count, and the ConversationApi for scrolling and focus.
- InlineAssist
An AI prompt anchored to an editor, a text selection or a point - streamed responses from a provider-agnostic adapter, Stop, slash commands, Accept / Discard / Retry, a toolbar slot, custom composer and content renderers, dictation and APG non-modal dialog accessibility.
- TextArea suggestions
useTextSuggest - inline completions for the Inputs TextArea from any source (a local phrase list, the browser, a server or a model) as ghost text or a popover, accepted with Tab, cancelled on every keystroke, and paid for only by the fields that use them.
- Smart paste
useSmartPaste fills a form from pasted text - an address, an email, a support ticket - through your own adapter, with any Button. It describes the fields, writes the answer into React-controlled inputs and reports what it filled.
Guides
- Smart feature recipes
How to build smart AI features with Salmon UI, a provider-agnostic Conversation adapter, your own server route and the public props of each host component.
Tooling
- Agent Skills
One generated Agent Skill per Salmon UI component family, installed with npx skills add, so coding agents use the current imports, mental model, API and common mistakes instead of memory.