ChannelPreviewMessage

Renders a preview of the latest message inside ChannelList. This is the default component for the ChannelPreviewMessage override.

Best Practices

  • Keep previews short and avoid heavy formatting in list rows.
  • Prefer server-provided preview data when available.
  • Handle missing message text gracefully (attachments-only, system messages).
  • Avoid expensive parsing in render; precompute if needed.
  • Keep preview styling consistent with the rest of ChannelList.

Props

PropDescriptionType
channelChannel instance from the Stream Chat client.Channel
lastMessageLast message in the channel.LocalMessage | MessageResponse

UI Component Props

ComponentDescriptionTypeDefault
ChannelPreviewTypingIndicatorTyping indicator component rendered within ChannelPreview.ComponentTypeChannelPreviewTypingIndicator
ChannelPreviewMessageDeliveryStatusMessage delivery status component rendered within ChannelPreview.ComponentTypeChannelPreviewMessageDeliveryStatus
ChannelPreviewLastMessageLast message component rendered within ChannelPreview.ComponentTypeChannelLastMessagePreview