Skip to main content

ChannelPreviewComponent

The ChannelPreview component displays a channel preview in the channel list, it consists of the image, name (or list of members if name isn't defined) and latest message of the channel.

Customization

The channel list uses the ChannelPreview component to display channels, if you want to replace that with your own custom component you can use the CustomTemplatesService.

The MessageService has additional customization options.

note

If you want to build your own ChannelPreview component, you might find the following building blocks useful:

Avatar

The ChannelPreview component uses the Avatar component to display the channel's photo.

Inputs and outputs

channel

channel: undefined | Channel<DefaultStreamChatGenerics>

The channel to be displayed

Defined in

lib/channel-preview/channel-preview.component.ts:28

Did you find this page helpful?