Avatar

A circular component for displaying user profile images with fallback support.

Import

Usage

CN

Avatar Props

AttributeTypeDefaultDescription
classNamestring-Additional CSS classes for styling the avatar.

AvatarImage Props

AttributeTypeDefaultDescription
srcstring-The source URL of the avatar image.
altstring-Alternative text for the image.
classNamestring-Additional CSS classes for styling the image.

AvatarFallback Props

AttributeTypeDefaultDescription
childrenReact.ReactNode-Content to display when image fails to load (typically initials).
classNamestring-Additional CSS classes for styling the fallback.