AI Components
Conversation
The scrolling message list of a chat.
Installation
import { ... } from 'nooxit-design-system/components/ai/conversation';Empty state
ConversationEmptyState shows before the first message. It is an
Empty with an optional icon.
Notes
Built on Message Scroller. While the
reader is at the end of the list, new messages keep it scrolled down. Once they
scroll up, it stays put and ConversationScrollButton appears to jump back.
Conversation fills the rest of a flex column, so place it in a parent that
has a height, as the Chat window does.
ConversationDownload saves the messages as a Markdown file, and
messagesToMarkdown returns the same text if you want it elsewhere.
Adapted from AI Elements' Conversation.
Source — src/components/ai/conversation.tsx