1. Components
  2. Avatar

Avatar

An image element with a fallback to display visual content about a user.

Requires the 'use client' directive if React Server Components are being used.

Size

Fallback

While src is loading (or there's an error), the contents inside Avatar.Fallback will be displayed.

Fallback

Note that the src attribute is intentionally set to an invalid value to demonstrate the fallback behavior.