The basic usage shows an avatar with an image. The Avatar.Image component handles loading the image, while Avatar.Fallback is displayed while the image loads or if it fails.
JD
Avatar with fallback
When the image fails to load or isn't provided, the fallback content is displayed. This is typically used to show user initials.
JSAB
Custom sizes
The default avatar size is 48×48px. You can customize the size by passing inline styles or a custom className to the Avatar.Root component. The fallback text automatically scales thanks to CSS container queries.