Avatar
A person's picture in a circle, 32px by default. AvatarImage shows the picture once it has loaded, and AvatarFallback shows the initials until then or when there is none.
U1U2
Usage
Examples
Sizes
size sets the avatar at 20, 24, 32, 40 or 48 pixels: xs, sm, base (the default), lg or xl, and its initials, its badge and a group's count follow.
U1
U1
U1
U1
U1
Border radius
borderRadius sets its corners on the kit's one scale: none, xs 4px, sm 6px, base 8px, lg 12px, xl 16px or full, the default. A person keeps the circle, and a thing's picture, such as a product's or a team's, takes small corners, sm.
U1U1U1U1U1U1U1
With badge
AvatarBadge pins a dot to the avatar's bottom corner, such as a person's status, and an icon inside it is sized to the avatar and hidden on the small one.
U1U2
API Reference
Avatar
AvatarProps · components/Avatar/Avatar.types.tsAvatarImage
AvatarImageProps · takes the props of Radix Avatar.ImageAvatarFallback
AvatarFallbackProps · takes the props of Radix Avatar.FallbackAvatarBadge
AvatarBadgeProps · takes the props of <span>AvatarGroup
AvatarGroupProps · takes the props of <div>AvatarGroupCount
AvatarGroupCountProps · takes the props of <div>It also takes the props of Radix Avatar.Root.