Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nuxt/ui/llms.txt
Use this file to discover all available pages before exploring further.
Overview
TheChatMessages component displays a list of chat messages with support for streaming (like AI responses), auto-scrolling, markdown rendering, and customizable user/assistant message styling.
Basic usage
With streaming
Props
Array of chat messages to display. Each message should have
id, role, and content properties.Current chat status for showing loading indicators.
Whether to automatically scroll to the bottom when new messages arrive.
Whether to show a “scroll to bottom” button when scrolled up.
Configuration for the auto-scroll button.
Custom styling configuration for user messages.
Custom styling configuration for assistant messages.
Enable compact mode with reduced spacing.
Additional spacing offset from the bottom (useful when combined with sticky prompt).
Message interface
With Vercel AI SDK
Custom message styling
Slots
Customize the entire message rendering.
Customize user messages only.
Customize assistant messages only.
Add action buttons to messages (copy, regenerate, etc.).