Components
<UserAvatar />
The <UserAvatar />
component renders a user's avatar image based on the provided user object. If the user does not have an avatar image, a fallback with the first 2 letters of their name or email will be displayed.


Usage
Reference
The following props can be passed to the <UserAvatar />
component:
Prop | Type | Default |
---|---|---|
user? | User | - |
classNames? | UserAvatarClassNames | - |
Example
Here is a practical example demonstrating customized styles and fallback customization: