OptionalformatCustom formatter for the day-separator label shown between messages from
different calendar days. Receives the first message of the day's timestamp.
When omitted, the default renders the today / yesterday labels and a
localized date for older days.
The message timestamp (Date object or ISO string)
Formatted day label
OptionalformatCustom timestamp formatter.
The message timestamp
Formatted timestamp string
OptionalrenderCustom render function for the empty state.
Custom React content when no messages exist
OptionalrenderCustom render function for the header.
The header title
The default rendered header (can be used or replaced)
Custom React content for the header
OptionalrenderCustom render function for a message.
The message data
Whether this is the local user's message
The default rendered content (can be used or replaced)
Custom React content for the message
Render props for advanced ChatPanel customization.
Remarks
Use these to completely customize how messages, the header, or empty state are rendered while still leveraging the component's logic and state management.
Example