Chat demos
Every demo has a standalone page with its preview, source and notes.
10 demos
Components
- Support chat with a bot
A Conversation with a header toolbar, quick replies, a typing indicator, a composer and a fake bot adapter that streams its replies word by word - Stop, a cancellable send, compact layout and date separators.
- Mentions and custom items in an assistant
An assistant Conversation whose composer mentions teammates through the Dropdowns Mention (one cancelled by onBeforeMentionSelect), an adapter that reads message.mentions, and renderItem decorating items with the default item and Conversation.Item.
- AI assistant with streaming, parts and alternatives
A Conversation with variant="assistant" over a fake streaming adapter - reasoning and a tool call stream before the answer, Stop, prompt suggestions, regenerate with previous / next responses, feedback, edit, a clearable composer, dictation and an application Markdown renderer.
- Team chat with actions and attachments
A controlled Conversation with item actions (reply, copy, pin, a custom Forward, delete), reply previews, a pinned bar, forwarded labels, delivery status with retry, quick replies, @ mentions and attachments with a fake upload.
- Long history with load on demand
A virtualized Conversation with 2,000 messages, 600 older ones that load on demand as you scroll up, the jump-to-latest button with an unread count, autoScroll modes and the ConversationApi.
- Rewrite a selection with InlineAssist
An InlineAssist anchored to a textarea with slash commands, a fake streaming adapter (one word every 40 ms, no API key), Stop, and Accept, Discard and Retry on the finished response.
- InlineAssist modes, toolbar, templates and dictation
Switch an InlineAssist between the anchored popover and inline mode, move its toolbar slot, replace the prompt with renderComposer, render a Markdown answer through renderContent and dictate the prompt with InlineAssist.Dictation.
- TextArea suggestions from a phrase list
A TextArea with a local phrase matcher as its suggest function - ghost text or a popover, Tab to accept, Escape to dismiss, and the show and accept events in a log.
- Vetoing suggestions on a full-featured TextArea
useTextSuggest on a TextArea with maxLength, clearable, resize, read-only and disabled states, where onBeforeSuggestionShow hides suggestions that would not fit or while suggestions are paused.
- Smart paste into a contact form
useSmartPaste with two Buttons - one pastes the sample text, one reads the clipboard - filling TextFields, a Checkbox and a TextArea, plus a Select as a custom field, with the pending state and the filled and skipped fields in a log.