Docs
Message List
Message List
A component for rendering a list of chat messages with a typing indicator.
The MessageList component renders a vertical list of chat messages with optional typing indicators and timestamps.
Installation
Usage
With Custom Message Options
With Dynamic Message Options
Props
Prop | Type | Default | Description |
---|---|---|---|
messages | Message[] | Required | Array of messages to display |
showTimeStamps | boolean | true | Whether to show timestamps on messages |
isTyping | boolean | false | Whether to show the typing indicator |
messageOptions | AdditionalMessageOptions | ((message: Message) => AdditionalMessageOptions) | - | Additional options to pass to each ChatMessage component |