About Chat Log
Chat Log is a collection of components that allow users to read a series of messages over time. Use Chat Log to display conversational interfaces where messages are exchanged between users.Components
The Chat Log package provides several components:- ChatLog - Container for the entire chat message list
- ChatMessage - Individual message container
- ChatBubble - Visual bubble wrapping message content
- ChatMessageMeta - Metadata section (timestamp, status)
- ChatMessageMetaItem - Individual metadata item
- ChatEvent - System event message
- ChatBookend - Section divider in chat
- ChatAttachment - File attachment display
- ChatLogger - Component for managing chat state
- useChatLogger - Hook for chat state management
Installation
Usage
Props
ChatLog
ChatMessage
ChatBubble
ChatMessageMeta
ChatMessageMetaItem
useChatLogger Hook
Manages chat message state:Accessibility
- Chat Log uses
role="log"for proper screen reader announcements - Messages are contained in a list structure with
role="list" - Each message has proper semantic structure
- Metadata sections require
aria-labelfor context
Related components
- Chat Composer - For composing new messages
- AI Chat Log - For AI assistant conversations