Pular para o conteúdo

Avatar

Este conteúdo não está disponível em sua língua ainda.

The Avatar component is used to display user profiles or placeholders with images, icons, or initials.
It supports fallback text, status indicators, grouping, and customizable sizing.

  • Flexible content: Display images, initials, or icons.
  • Fallback support: Show text if no image is available.
  • Status indicators: Combine with Status to show online/offline or other states.
  • Grouped avatars: Display multiple avatars together with proper spacing.
  • Customizable: Width, height, border animations, and more.
T



A
B
C
D

A
B
C
+99
PropTypeDefaultDescription
srcstring""URL of the avatar image.
textFallbackstring""Text to display when no image is provided.
widthstring | number"3rem"Width of the avatar.
heightstring | number"3rem"Height of the avatar.
groupedbooleanfalseWhether the avatar is part of a group.
sizestring"md"Predefined size for grouped avatars (e.g., sm, md, lg).
  • Use fallback text to ensure accessibility if images fail to load.
  • Combine with Status to indicate user state.
  • Use Avatar.Group for displaying multiple users with proper spacing.
  • Apply custom borders or animations via Card for visual emphasis.
  • Keep avatar sizes consistent within a group for a clean layout.