<Avatar>

The <Avatar> component is used to display a user's profile picture or a conversation's image.

interface AvatarProps

Properties

A collection of objects which are passed to all Chatbox/ConversationList theme components.

Because this particular theme component can show up in both a <Chatbox> and a <ConversationList>, this prop has a union type.

photoUrl
: string

The URL of the image that's to be displayed.

Example

In the default theme, the <Avatar> component is implemented as follows:

Avatar.js
1// loading...